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 }}
-