fix(嵌入式): 编辑仪表板后返回,没有定位到当前仪表板

This commit is contained in:
dataeaseShu
2025-11-19 10:09:42 +08:00
committed by dataeaseShu
parent 671e427ae6
commit b51973ae58
2 changed files with 2 additions and 0 deletions

View File

@@ -337,6 +337,7 @@ const embeddedStore = useEmbedded()
const backHandler = (url: string) => {
if (isEmbedded.value) {
wsCache.set(`db-info-id`, dvInfo.value.id)
embeddedStore.clearState()
useEmitt().emitter.emit('changeCurrentComponent', 'DashboardPanel')
return

View File

@@ -249,6 +249,7 @@ const isEmbedded = computed(() => appStore.getIsDataEaseBi || appStore.getIsIfra
const backHandler = (url: string) => {
if (isEmbedded.value) {
wsCache.set(`dv-info-id`, dvInfo.value.id)
embeddedStore.clearState()
useEmitt().emitter.emit('changeCurrentComponent', 'ScreenPanel')
return