fix(仪表板): 修复进入仪表板,首次操作未计入画布变更问题

This commit is contained in:
wangjiahao 2024-05-27 12:12:53 +08:00
parent dcbdc54648
commit 808f9530d1
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)
}
})