|
@@ -233,8 +233,9 @@ export const useUserStore = defineStore('user',
|
|
// 检查密码是否需要修改
|
|
// 检查密码是否需要修改
|
|
async updatePasswordCheck () {
|
|
async updatePasswordCheck () {
|
|
const bool = await getEntUpdatePasswordCheck()
|
|
const bool = await getEntUpdatePasswordCheck()
|
|
- if (!bool) {
|
|
|
|
- localStorage.setItem('entUpdatePassword', !bool ? 'needChange' : 'doNotNeedChange')
|
|
|
|
|
|
+ if (bool) {
|
|
|
|
+ // 强制修改密码
|
|
|
|
+ localStorage.setItem('entUpdatePassword', bool ? 'needChange' : 'doNotNeedChange')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|