fix(数据大屏、仪表板): 修复桌面版从数据集测新建仪表板,数据集选项可能不准确问题

This commit is contained in:
wangjiahao 2025-01-07 11:51:04 +08:00 committed by 王嘉豪
parent 35640f08ee
commit 59bc6df229
2 changed files with 2 additions and 0 deletions

View File

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

View File

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