Browse Source

强制修改密码

lifanagju_citu 6 tháng trước cách đây
mục cha
commit
297c191d59
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/store/user.js

+ 3 - 2
src/store/user.js

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