Explorar o código

首次登录才提示(只有null是,其他都不是)

lifanagju_citu hai 6 meses
pai
achega
9e1d8e5139
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/store/user.js

+ 2 - 1
src/store/user.js

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