Browse Source

首次登录才提示,不为false都属于首次登录

lifanagju_citu 6 months ago
parent
commit
524dfbb83c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/store/user.js

+ 1 - 2
src/store/user.js

@@ -199,8 +199,7 @@ export const useUserStore = defineStore('user',
       async checkEnterpriseBaseInfo () {
         try {
           const data = await getEnterpriseBaseInfo()
-          // debugger
-          if (data?.first === true || data?.first === null || data?.first === undefined) {  // 首次登录才提示去完善资料
+          if (data?.first !== false && data?.first !== 'false') {  // 首次登录才提示,不为false都属于首次登录
             localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '/recruit/enterprise/entInfoSetting')
           }
           // // 检验必填信息