fix: 修改密码后退出登录
This commit is contained in:
@@ -140,7 +140,14 @@ function submitHandle() {
|
|||||||
password: form.newPass,
|
password: form.newPass,
|
||||||
});
|
});
|
||||||
ElNotification.success("修改成功,请重新登陆");
|
ElNotification.success("修改成功,请重新登陆");
|
||||||
logout();
|
userStore
|
||||||
|
.logout()
|
||||||
|
.then(() => {
|
||||||
|
tagsViewStore.delAllViews();
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
router.push(`/login?redirect=${route.fullPath}`);
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
formLoading.value = false;
|
formLoading.value = false;
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user