Explorar el Código

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 hace 6 meses
padre
commit
854f8fdd6d
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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 === null || data?.first === 'null') {  // 首次登录才提示(只有null是,其他都不是)
+          if (data?.first !== false && data?.first !== 'false') {  // 首次登录才提示,不为false都属于首次登录
             localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '/recruit/enterprise/entInfoSetting')
           }
           // // 检验必填信息