From 424a418fe257a447e27219fc499691ec33b96f1c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 17 Jul 2024 11:32:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20DataEase?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB=E7=BB=9F=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=B8=8C=E6=9C=9B=E5=B1=95=E7=A4=BA=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/DashboardPreview.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/pages/panel/DashboardPreview.vue b/core/core-frontend/src/pages/panel/DashboardPreview.vue index 9a2caf78a9..e87213499d 100644 --- a/core/core-frontend/src/pages/panel/DashboardPreview.vue +++ b/core/core-frontend/src/pages/panel/DashboardPreview.vue @@ -75,7 +75,9 @@ onBeforeMount(async () => { canvasViewInfoPreview, curPreviewGap }) { - if (!dvInfo.mobileLayout) { + if (!isPc && !dvInfo.mobileLayout) { + dvMainStore.setMobileInPc(true) + dvMainStore.setInMobile(true) useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty') return }