From 99431138c530c030dc45c4d1595d92c2ef6fc6dc Mon Sep 17 00:00:00 2001 From: lyt <1105290566@qq.com> Date: Sat, 25 Sep 2021 17:47:34 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.09.25:=E4=BF=AE=E6=94=B9=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E6=97=B6=E8=8F=9C=E5=8D=95=E6=B0=B4=E5=B9=B3=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=E9=97=AE=E9=A2=98=EF=BC=8C=E6=84=9F=E8=B0=A2=E7=BE=A4?= =?UTF-8?q?=E5=8F=8B@=E4=B8=89=E6=9C=A8'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/component/aside.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/component/aside.vue b/src/layout/component/aside.vue index bdc425f8..d8714eb3 100644 --- a/src/layout/component/aside.vue +++ b/src/layout/component/aside.vue @@ -74,7 +74,8 @@ export default { const closeLayoutAsideMobileMode = () => { const el = document.querySelector('.layout-aside-mobile-mode'); el && el.parentNode?.removeChild(el); - store.state.themeConfig.themeConfig.isCollapse = false; + const clientWidth = document.body.clientWidth; + if (clientWidth < 1000) store.state.themeConfig.themeConfig.isCollapse = false; document.body.setAttribute('class', ''); }; // 设置显示/隐藏 logo