fix(数据集): 新建仪表板指定数据集不正确

This commit is contained in:
dataeaseShu
2024-12-10 11:16:49 +08:00
parent e665c2013a
commit 94ea9615b4

View File

@@ -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',