账号密码支持自定义更新周期

This commit is contained in:
RuoYi
2025-05-23 09:04:50 +08:00
parent 8ff013552a
commit c0355a0f5a
3 changed files with 34 additions and 7 deletions

View File

@ -83,6 +83,12 @@ const user = {
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
}).catch(() => {})
}
/* 过期密码提示 */
if(!res.isDefaultModifyPwd && res.isPasswordExpired) {
MessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
}).catch(() => {})
}
resolve(res)
}).catch(error => {
reject(error)