feat: 注释掉用户信息获取中的初始密码提示逻辑
This commit is contained in:
parent
dd909bedfe
commit
82655fcf36
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,6 +20,7 @@ selenium-debug.log
|
||||
*.local
|
||||
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
|
||||
.history
|
||||
|
||||
@ -58,11 +58,11 @@ const useUserStore = defineStore(
|
||||
this.avatar = avatar
|
||||
cache.session.set('pwrChrtype', res.pwdChrtype)
|
||||
/* 初始密码提示 */
|
||||
if(res.isDefaultModifyPwd) {
|
||||
ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
|
||||
}).catch(() => {})
|
||||
}
|
||||
// if(res.isDefaultModifyPwd) {
|
||||
// ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||
// router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
|
||||
// }).catch(() => {})
|
||||
// }
|
||||
/* 过期密码提示 */
|
||||
if(!res.isDefaultModifyPwd && res.isPasswordExpired) {
|
||||
ElMessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user