From f5e66da24d11103d19986d88428e17d6d4dd8b0f Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 27 三月 2025 14:44:10 +0800 Subject: [PATCH] 数据监测 --- src/layout/index.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 32fb68d..5402ac9 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -9,6 +9,7 @@ import { Local } from '/@/utils/storage'; import mittBus from '/@/utils/mitt'; import { PingLogin } from '/@/api/system'; +import { MOBILE_MIN_WIDTH } from '../constants'; // 寮曞叆缁勪欢 const layouts: any = { @@ -26,7 +27,7 @@ const onLayoutResize = () => { if (!Local.get('oldLayout')) Local.set('oldLayout', themeConfig.value.layout); const clientWidth = document.body.clientWidth; - if (clientWidth < 1000) { + if (clientWidth < MOBILE_MIN_WIDTH) { themeConfig.value.isCollapse = false; mittBus.emit('layoutMobileResize', { layout: 'defaults', -- Gitblit v1.9.3