Merge pull request #10939 from dataease/pr@dev-v2@fix_download

fix(数据大屏、仪表板): 修复导出结束时状态没有及时变更问题
This commit is contained in:
王嘉豪 2024-07-12 17:07:55 +08:00 committed by GitHub
commit 24f49a58d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,9 @@ export function download2AppTemplate(downloadType, canvasDom, name, callBack?) {
})
})
} catch (e) {
if (callBack) {
callBack()
}
console.error(e)
}
}
@ -96,6 +99,9 @@ export function downloadCanvas2(type, canvasDom, name, callBack?) {
}
})
.catch(error => {
if (callBack) {
callBack()
}
console.error('oops, something went wrong!', error)
})
}