From 59bc6df229a7e2fa440c551989448122fd519dc5 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 7 Jan 2025 11:51:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E7=89=88=E4=BB=8E=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E6=B5=8B=E6=96=B0=E5=BB=BA=E4=BB=AA=E8=A1=A8=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E9=80=89=E9=A1=B9=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=B8=8D=E5=87=86=E7=A1=AE=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/dashboard/index.vue | 1 + core/core-frontend/src/views/data-visualization/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 0f0320588e..b78de003c8 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -169,6 +169,7 @@ const initLocalCanvasData = () => { }) } onMounted(async () => { + dvMainStore.setCurComponent({ component: null, index: null }) snapshotStore.initSnapShot() if (window.location.hash.includes('#/dashboard')) { newWindowFromDiv.value = true diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index cadd290700..494a19b58c 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -356,6 +356,7 @@ const newWindowFromDiv = ref(false) let p = null const XpackLoaded = () => p(true) onMounted(async () => { + dvMainStore.setCurComponent({ component: null, index: null }) snapshotStore.initSnapShot() if (window.location.hash.includes('#/dvCanvas')) { newWindowFromDiv.value = true