fix: 修改密码后退出登录
This commit is contained in:
parent
b8ea96007a
commit
6f779f19a3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue