From 6b491d124669d7de404854cda39d956ceb04ccae Mon Sep 17 00:00:00 2001 From: Po <448443959@qq.com> Date: Fri, 15 Nov 2024 13:07:21 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E8=8F=9C=E5=8D=95=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Po <448443959@qq.com> --- Yi.RuoYi.Vue3/src/layout/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Yi.RuoYi.Vue3/src/layout/index.vue b/Yi.RuoYi.Vue3/src/layout/index.vue index 3ddb1657..07026810 100644 --- a/Yi.RuoYi.Vue3/src/layout/index.vue +++ b/Yi.RuoYi.Vue3/src/layout/index.vue @@ -41,12 +41,12 @@ const { width, height } = useWindowSize(); const WIDTH = 992; // refer to Bootstrap's responsive design watchEffect(() => { - if (device.value === 'mobile' && sidebar.value.opened) { - useAppStore().closeSideBar({ withoutAnimation: false }) - } + //if (device.value === 'mobile' && sidebar.value.opened) { + // useAppStore().closeSideBar({ withoutAnimation: false }) + // } if (width.value - 1 < WIDTH) { useAppStore().toggleDevice('mobile') - useAppStore().closeSideBar({ withoutAnimation: true }) + // useAppStore().closeSideBar({ withoutAnimation: true }) } else { useAppStore().toggleDevice('desktop') }