fix: 修改密码后退出登录

This commit is contained in:
YeMingfei666 2025-03-19 15:37:05 +08:00
parent b8ea96007a
commit 6f779f19a3
1 changed files with 8 additions and 1 deletions

View File

@ -140,7 +140,14 @@ function submitHandle() {
password: form.newPass,
});
ElNotification.success("修改成功,请重新登陆");
logout();
userStore
.logout()
.then(() => {
tagsViewStore.delAllViews();
})
.then(() => {
router.push(`/login?redirect=${route.fullPath}`);
});
} catch (error) {
formLoading.value = false;
console.log(error);