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(() => {}); }