chore: 移除项目内无用代码(28 文件)

- 清理任务面板/SPA 化改造遗留的未使用变量与函数(模板管理配套 6 函数、
  payloadForDisplay/showTip/hasRunning/schedulePoll/removeMatchedRowLocally 等 30+ 处)
- 清理未使用 import(getBrandTemplateXlsxUrl/uploadTempFileToJava/getProductRiskTasksBatch 等)
- useTaskProgressLoop 改为仅类型导入;progress/task-request 缓存未用参数精简
- DeleteBrandRunService 删除永不执行的 taskItems 死分支
- 全量 vue-tsc(含 --noUnusedLocals/--noUnusedParameters)0 错误;648 测试全过
This commit is contained in:
2026-09-08 10:20:30 +08:00
parent e248b6e43a
commit d9e3f34d37
28 changed files with 24 additions and 408 deletions
@@ -159,9 +159,6 @@ function baseName(path: string) {
let pollTimer: number | null = null
function hasRunning() {
return tasks.value.some((item) => isRunning(item))
}
function isRunning(item: BrandTaskItem) {
return (item.status || '').toLowerCase() === 'running'
@@ -452,19 +449,6 @@ async function downloadTemplate(kind: 'xlsx' | 'zip') {
}
}
function schedulePoll() {
if (pollTimer) {
window.clearTimeout(pollTimer)
pollTimer = null
}
pollTimer = window.setTimeout(async () => {
await loadTasks()
if (hasRunning()) {
schedulePoll()
}
}, 3000)
}
onMounted(() => {
void loadTasks()
})