فهرست منبع

强制修改密码

lifanagju_citu 6 ماه پیش
والد
کامیت
297c191d59
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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')
         }
       }
     }