diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 15dd7bb8a8..2a790578a2 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -419,6 +419,10 @@ const jumpClick = param => { return } + if (isIframe.value) { + embeddedStore.clearState() + } + if (iframeSelf) { router.push(parseUrl(url)) return @@ -438,6 +442,10 @@ const jumpClick = param => { divEmbedded('Iframe') return } + + if (isIframe.value) { + embeddedStore.clearState() + } windowsJump(url, jumpInfo.jumpType) } } else { diff --git a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue index 2ff8f9574f..b48d8e7e5a 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue @@ -73,6 +73,7 @@ const loadCanvasDataAsync = async (dvId, dvType) => { ElMessage.error(t('visualization.outer_param_decode_error')) } } + console.log('PreviewCanvas', dvId, jumpParam, attachParam) initCanvasData( dvId, @@ -107,6 +108,7 @@ let p = null const XpackLoaded = () => p(true) onMounted(async () => { await new Promise(r => (p = r)) + console.log('embeddedStore', embeddedStore, router) const dvId = embeddedStore.dvId || router.currentRoute.value.query.dvId const { dvType, callBackFlag } = router.currentRoute.value.query if (dvId) {