fix: 调整修改密码逻辑
This commit is contained in:
parent
d563d43605
commit
8b7313208a
@ -322,14 +322,15 @@ const submitPassword = () => {
|
||||
cpwd.passwordNew = sm2.doEncrypt(state.ruleFormPassword.passwordNew, publicKey, 1);
|
||||
await getAPI(SysUserApi).apiSysUserChangePwdPost(cpwd);
|
||||
|
||||
// 退出系统
|
||||
ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
||||
confirmButtonText: t('message.list.confirmButtonText'),
|
||||
cancelButtonText: t('message.list.cancelButtonText'),
|
||||
type: 'warning',
|
||||
}).then(async () => {
|
||||
clearAccessTokens();
|
||||
});
|
||||
// 修改密码后后端会强制下线,无需弹出确认重新登录提示
|
||||
// // 退出系统
|
||||
// ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
||||
// confirmButtonText: t('message.list.confirmButtonText'),
|
||||
// cancelButtonText: t('message.list.cancelButtonText'),
|
||||
// type: 'warning',
|
||||
// }).then(async () => {
|
||||
// clearAccessTokens();
|
||||
// });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user