From 3dba22c47cc2bf925e851360f299e907c9438e6d Mon Sep 17 00:00:00 2001 From: LiuHao Date: Tue, 19 Mar 2024 17:41:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E4=B8=8B=20=E6=97=A0=E6=B3=95=E5=B1=95=E5=BC=80?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 8fe5554..29fb5ff 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -46,7 +46,7 @@ const { width } = useWindowSize(); const WIDTH = 992; // refer to Bootstrap's responsive design watchEffect(() => { - if (device.value === 'mobile' && sidebar.value.opened) { + if (device.value === 'mobile') { useAppStore().closeSideBar({ withoutAnimation: false }); } if (width.value - 1 < WIDTH) {