diff --git a/core/core-frontend/src/pages/panel/DashboardPreview.vue b/core/core-frontend/src/pages/panel/DashboardPreview.vue index e87213499d..7f4f5f5e3b 100644 --- a/core/core-frontend/src/pages/panel/DashboardPreview.vue +++ b/core/core-frontend/src/pages/panel/DashboardPreview.vue @@ -75,7 +75,7 @@ onBeforeMount(async () => { canvasViewInfoPreview, curPreviewGap }) { - if (!isPc && !dvInfo.mobileLayout) { + if (!isPc.value && !dvInfo.mobileLayout) { dvMainStore.setMobileInPc(true) dvMainStore.setInMobile(true) useEmitt().emitter.emit('changeCurrentComponent', 'DashboardEmpty')