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