From 60fa7561890858f0d94952af4f507ace1e340685 Mon Sep 17 00:00:00 2001 From: skyselang <215817969@qq.com> Date: Tue, 16 Jan 2024 11:59:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=97=B6=E9=80=80=E5=87=BA=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=BC=B9=E6=A1=86=E9=A1=B5=E9=9D=A2=E6=8A=96=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/NavBar/NavRight.vue | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/layout/components/NavBar/NavRight.vue b/src/layout/components/NavBar/NavRight.vue index 904f0182..fa42222b 100644 --- a/src/layout/components/NavBar/NavRight.vue +++ b/src/layout/components/NavBar/NavRight.vue @@ -70,16 +70,19 @@ function logout() { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", - }).then(() => { - userStore - .logout() - .then(() => { - tagsViewStore.delAllViews(); - }) - .then(() => { - router.push(`/login?redirect=${route.fullPath}`); - }); - }); + lockScroll: false, + }) + .then(() => { + userStore + .logout() + .then(() => { + tagsViewStore.delAllViews(); + }) + .then(() => { + router.push(`/login?redirect=${route.fullPath}`); + }); + }) + .catch(() => {}); }