From 6a9bcf11882bdc12724816ba66c66f4b3f3ef0ec Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 28 Aug 2024 13:52:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20iframe?= =?UTF-8?q?=E5=B5=8C=E5=85=A5-=E8=A7=86=E5=9B=BE=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/ViewWrapper.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/pages/panel/ViewWrapper.vue b/core/core-frontend/src/pages/panel/ViewWrapper.vue index 10a8de8ff7..0e6ded51b0 100644 --- a/core/core-frontend/src/pages/panel/ViewWrapper.vue +++ b/core/core-frontend/src/pages/panel/ViewWrapper.vue @@ -13,7 +13,7 @@ import { XpackComponent } from '@/components/plugin' const { wsCache } = useCache() const interactiveStore = interactiveStoreWithOut() const embeddedStore = useEmbedded() -const chartId = inject('embeddedParams') as string +const injectChartId = inject('embeddedParams') as string const config = ref() const viewInfo = ref() const userViewEnlargeRef = ref() @@ -74,6 +74,7 @@ onBeforeMount(async () => { ElMessage.error(t('visualization.outer_param_decode_error')) } } + const chartId = injectChartId || embeddedStore.chartId initCanvasData( embeddedStore.dvId,