fix(数据大屏、仪表板): 修复导出结束时状态没有及时变更问题

This commit is contained in:
wangjiahao 2024-07-12 17:04:52 +08:00
parent 474baf7c79
commit 83c340cbd8

View File

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