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 }