mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-06-06 10:27:24 +00:00
账号密码支持自定义更新周期
This commit is contained in:
parent
37c94666fb
commit
f5b8eba57a
@ -59,6 +59,12 @@ const useUserStore = defineStore(
|
||||
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
|
||||
}).catch(() => {})
|
||||
}
|
||||
/* 过期密码提示 */
|
||||
if(!res.isDefaultModifyPwd && res.isPasswordExpired) {
|
||||
ElMessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
|
||||
}).catch(() => {})
|
||||
}
|
||||
resolve(res)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
Loading…
Reference in New Issue
Block a user