forked from github/dataease
fix(数据大屏、仪表板): 修复导出结束时状态没有及时变更问题
This commit is contained in:
parent
474baf7c79
commit
83c340cbd8
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user