feat: 产品迭代7月份
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m51s

This commit is contained in:
luo
2026-07-27 16:30:29 +08:00
parent cc6fc9243e
commit f0a2b84e53
75 changed files with 2926 additions and 534 deletions

View File

@@ -8,6 +8,7 @@ import {
type ShallowRef
} from 'vue'
import { isAsyncTaskActive, isAsyncTaskTerminal, type AsyncTaskProgress } from '@/types/api'
import { normalizeApiError } from '@/utils/business/apiError'
const POLL_DELAYS = [2000, 3000, 5000]
const MAX_POLL_DELAY = 10000
@@ -50,8 +51,7 @@ const writeStoredTaskId = (storageKey: string, taskId: number | null) => {
}
}
const getErrorMessage = (error: any) =>
error?.response?.data?.msg || error?.message || '获取导出任务详情失败'
const getErrorMessage = (error: unknown) => normalizeApiError(error).message
export function useAsyncTaskPolling<T extends AsyncTaskProgress>(
options: AsyncTaskPollingOptions<T>