From 1c89464d1a5856a037e0b5a4584c64917a092140 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 27 May 2023 21:55:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8A=98=E5=8F=A0=E5=90=8E=E7=AA=81=E7=84=B6?= =?UTF-8?q?=E6=8B=89=E5=8D=87=E9=80=A0=E6=88=90=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=95=B4=E4=BD=93=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index dd46e2de5..9103f4b6f 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -96,11 +96,12 @@ emitter.on("resize", ({ detail }) => { toggle("desktop", false); isAutoCloseSidebar = false; } - } else if (width > 990) { - if (!set.sidebar.isClickCollapse) { - toggle("desktop", true); - isAutoCloseSidebar = true; - } + } else if (width > 990 && !set.sidebar.isClickCollapse) { + toggle("desktop", true); + isAutoCloseSidebar = true; + } else { + toggle("desktop", false); + isAutoCloseSidebar = false; } });