From 977d45254413e780348b3e8c248ea5e973426c79 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 10 May 2024 16:54:48 +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-=E7=BC=96=E8=BE=91=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=E6=8A=A5=20iframe=20=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E5=BC=8F=E5=9F=9F=E5=90=8D=E5=8C=B9=E9=85=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboard/MobileConfigPanel.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index 4bc3babe8e..a34c45b8f8 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -70,13 +70,16 @@ const componentDataNotInMobile = computed(() => { const newWindow = ref() const hanedleMessage = event => { - if (event.data?.msgOrigin === 'de-fit2cloud' && !!embeddedStore.token) { + if ( + event.data?.msgOrigin === 'de-fit2cloud' && + !!embeddedStore.token && + !!embeddedStore.baseUrl + ) { 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 }