From 808f9530d19394ab09bbc6ffa7d001c71b95bcac Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 27 May 2024 12:12:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BF=9B=E5=85=A5=E4=BB=AA=E8=A1=A8=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=93=8D=E4=BD=9C=E6=9C=AA=E8=AE=A1=E5=85=A5?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E5=8F=98=E6=9B=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/canvas/DeCanvas.vue | 2 +- core/core-frontend/src/views/dashboard/index.vue | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) 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) } })