This commit is contained in:
parent
36742f95aa
commit
bbfcdc9c24
|
|
@ -546,10 +546,14 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await getDownloadTaskAPI(this.queryDownloadTask)
|
const { data: res } = await getDownloadTaskAPI(
|
||||||
|
this.queryDownloadTask,
|
||||||
|
)
|
||||||
if (res.taskId) {
|
if (res.taskId) {
|
||||||
this.downloadTaskTimer = setInterval(async () => {
|
this.downloadTaskTimer = setInterval(async () => {
|
||||||
const result = await getDownloadTaskLinkAPI(res.taskId)
|
const { data: result } = await getDownloadTaskLinkAPI(
|
||||||
|
res.taskId,
|
||||||
|
)
|
||||||
|
|
||||||
if (result.status === 'completed') {
|
if (result.status === 'completed') {
|
||||||
clearInterval(this.downloadTaskTimer)
|
clearInterval(this.downloadTaskTimer)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue