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);
|
cpwd.passwordNew = sm2.doEncrypt(state.ruleFormPassword.passwordNew, publicKey, 1);
|
||||||
await getAPI(SysUserApi).apiSysUserChangePwdPost(cpwd);
|
await getAPI(SysUserApi).apiSysUserChangePwdPost(cpwd);
|
||||||
|
|
||||||
// 退出系统
|
// 修改密码后后端会强制下线,无需弹出确认重新登录提示
|
||||||
ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
// // 退出系统
|
||||||
confirmButtonText: t('message.list.confirmButtonText'),
|
// ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
||||||
cancelButtonText: t('message.list.cancelButtonText'),
|
// confirmButtonText: t('message.list.confirmButtonText'),
|
||||||
type: 'warning',
|
// cancelButtonText: t('message.list.cancelButtonText'),
|
||||||
}).then(async () => {
|
// type: 'warning',
|
||||||
clearAccessTokens();
|
// }).then(async () => {
|
||||||
});
|
// clearAccessTokens();
|
||||||
|
// });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user