This commit is contained in:
BianLzhaoMin 2026-01-04 09:42:55 +08:00
parent 36742f95aa
commit bbfcdc9c24
1 changed files with 6 additions and 2 deletions

View File

@ -546,10 +546,14 @@ export default {
}
try {
const res = await getDownloadTaskAPI(this.queryDownloadTask)
const { data: res } = await getDownloadTaskAPI(
this.queryDownloadTask,
)
if (res.taskId) {
this.downloadTaskTimer = setInterval(async () => {
const result = await getDownloadTaskLinkAPI(res.taskId)
const { data: result } = await getDownloadTaskLinkAPI(
res.taskId,
)
if (result.status === 'completed') {
clearInterval(this.downloadTaskTimer)