From 5972cfe12dd74d1981d314d4b82660cf770b1463 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 8 May 2024 18:07:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B5=8C=E5=85=A5=E5=BC=8F=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboard/MobileConfigPanel.vue | 15 ++++++++++++-- .../src/views/mobile/panel/index.vue | 20 +++++++++++++++---- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index 2ccb74eaad..0634d90dd3 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -46,7 +46,6 @@ const iframeSrc = computed(() => { ? `${embeddedStore.baseUrl}mobile.html#/panel` : './mobile.html#/panel' }) - const handleLoad = () => { mobileStatusChange( 'panelInit', @@ -67,7 +66,19 @@ const componentDataNotInMobile = computed(() => { return componentData.value.filter(ele => !ele.inMobile) }) +const newWindow = ref() + const hanedleMessage = event => { + if (event.data?.msgOrigin === 'de-fit2cloud' && !!embeddedStore.token) { + const params = { + embeddedToken: embeddedStore.token + } + params['de-embedded'] = true + const contentWindow = newWindow.value.contentWindow + console.log('call back from dataease!', contentWindow) + contentWindow.postMessage(params, '*') + return + } if (event.data.type === 'panelInit') { loadCanvasData() } @@ -214,7 +225,7 @@ const save = () => { {{ dvInfo.name }}
-