diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index f4c8efa559..9a5faba215 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -20,6 +20,7 @@ import { onBeforeMount, provide, unref, + onBeforeUnmount, onMounted } from 'vue' import Icon from '@/components/icon-custom/src/Icon.vue' @@ -183,6 +184,11 @@ onBeforeMount(() => { cacheId = route.query.id as unknown as string }) +onBeforeUnmount(() => { + view.value.tableId = '' + cacheId = '' +}) + onMounted(() => { useEmitt({ name: 'clear-remove',