Ver Fonte

首次登录才提示去完善资料

lifanagju_citu há 6 meses atrás
pai
commit
f363a727f1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/store/user.js

+ 1 - 1
src/store/user.js

@@ -200,7 +200,7 @@ export const useUserStore = defineStore('user',
         try {
           const data = await getEnterpriseBaseInfo()
           // debugger
-          if (data?.first === null || data?.first === 'null') {  // 首次登录才提示(只有null是,其他都不是)
+          if (data?.first === true || data?.first === null || data?.first === undefined) {  // 首次登录才提示去完善资料
             localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '/recruit/enterprise/entInfoSetting')
           }
           // // 检验必填信息