diff --git a/core/core-frontend/src/views/canvas/DeCanvas.vue b/core/core-frontend/src/views/canvas/DeCanvas.vue index ecaeb083cc..7a96b588d2 100644 --- a/core/core-frontend/src/views/canvas/DeCanvas.vue +++ b/core/core-frontend/src/views/canvas/DeCanvas.vue @@ -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) diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index dde79b2d71..8d115c330d 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -137,13 +137,6 @@ const initLocalCanvasData = () => { dvInfo.value.pid = sourcePid setTimeout(() => { snapshotStore.recordSnapshotCache() - // 复制时,初始化的保存按钮为激活状态 - if (opt === 'copy') { - // 使用缓存时,初始化的保存按钮为激活状态 - setTimeout(() => { - snapshotStore.recordSnapshotCache('renderChart') - }, 1000) - } }, 1500) } })