fix: 在密码重置成功后添加用户登出功能

This commit is contained in:
TsMask
2025-03-31 19:00:48 +08:00
parent d037a76856
commit 45771aba1e

View File

@@ -52,6 +52,7 @@ function fnFinish() {
updateUserPassword(state.form.oldPassword, state.form.confirmPassword)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
fnLogOut();
Modal.success({
title: t('common.tipTitle'),
content: t('views.account.settings.submitOkTip', {
@@ -59,7 +60,7 @@ function fnFinish() {
}),
okText: t('views.account.settings.submitOk'),
onOk() {
fnLogOut().finally(() => router.push({ name: 'Login' }));
router.push({ name: 'Login' });
},
});
} else {