+
+
+
任务队列
+
刮削 / 下载 / 上传三类任务统一管理,按类型切换查看
+
+
+
+
+ {/* 类型 Tab */}
+
+ {QUEUE_TABS.map((tab) => {
+ const active = type === tab.type
+ const Icon = tab.icon
+ const badge =
+ tab.type === 'scrape'
+ ? countBadge(scrapeCounts)
+ : tab.type === 'download'
+ ? countBadge(downloadCounts)
+ : tab.type === 'upload'
+ ? countBadge(uploadCounts)
+ : null
+ return (
+
+ )
+ })}
+
+
+ {/* 内容 */}
+ {type === 'scrape' &&
}
+ {type === 'download' &&
}
+ {type === 'upload' &&
}
+ {type === 'all' && (
+
+
+
+
+
+ )}
+
+ )
+}
\ No newline at end of file