Merge pull request #9872 from dataease/pr@dev-v2@fix_canvas-edit

fix(仪表板): 修复进入仪表板,首次操作未计入画布变更问题
This commit is contained in:
王嘉豪 2024-05-27 12:13:55 +08:00 committed by GitHub
commit 8d11116d54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View File

@ -138,7 +138,7 @@ const canvasInit = (isFistLoad = true) => {
}
// afterInit
dvMainStore.setDataPrepareState(true)
if (isMainCanvas(canvasId.value.id) && isFistLoad) {
if (isMainCanvas(canvasId.value) && isFistLoad) {
snapshotStore.recordSnapshotCache('renderChart')
}
}, 500)

View File

@ -137,13 +137,6 @@ const initLocalCanvasData = () => {
dvInfo.value.pid = sourcePid
setTimeout(() => {
snapshotStore.recordSnapshotCache()
//
if (opt === 'copy') {
// 使
setTimeout(() => {
snapshotStore.recordSnapshotCache('renderChart')
}, 1000)
}
}, 1500)
}
})