From fdf1133adfc5bd237093c7667eb72eaf2db0ff78 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 8 May 2024 11:03:22 +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=E5=9C=BA=E6=99=AF=E4=B8=8B?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=88=87=E6=8D=A2=E5=88=B0=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboard/MobileConfigPanel.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index 6e02d04a5a..eef257a314 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -2,9 +2,9 @@ import { ref, onMounted, unref, onBeforeUnmount, computed } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus-secondary' import MobileBackgroundSelector from './MobileBackgroundSelector.vue' -import { findById } from '@/api/visualization/dataVisualization' import ComponentWrapper from '@/components/data-visualization/canvas/ComponentWrapper.vue' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' +import { useEmbedded } from '@/store/modules/embedded' import { canvasSave } from '@/utils/canvasUtils' import { useEmitt } from '@/hooks/web/useEmitt' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' @@ -39,6 +39,13 @@ const mobileStatusChange = (type, value) => { ) } } +const embeddedStore = useEmbedded() + +const iframeSrc = computed(() => { + return embeddedStore.baseUrl + ? `${embeddedStore.baseUrl}/mobile.html#/panel` + : './mobile.html#/panel' +}) const handleLoad = () => { mobileStatusChange( @@ -207,7 +214,7 @@ const save = () => { {{ dvInfo.name }}
-