fix: 在密码重置成功后添加用户登出功能
This commit is contained in:
@@ -52,6 +52,7 @@ function fnFinish() {
|
|||||||
updateUserPassword(state.form.oldPassword, state.form.confirmPassword)
|
updateUserPassword(state.form.oldPassword, state.form.confirmPassword)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
fnLogOut();
|
||||||
Modal.success({
|
Modal.success({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: t('views.account.settings.submitOkTip', {
|
content: t('views.account.settings.submitOkTip', {
|
||||||
@@ -59,7 +60,7 @@ function fnFinish() {
|
|||||||
}),
|
}),
|
||||||
okText: t('views.account.settings.submitOk'),
|
okText: t('views.account.settings.submitOk'),
|
||||||
onOk() {
|
onOk() {
|
||||||
fnLogOut().finally(() => router.push({ name: 'Login' }));
|
router.push({ name: 'Login' });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user