浏览代码

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

lifanagju_citu 6 月之前
父节点
当前提交
524dfbb83c
共有 1 个文件被更改,包括 1 次插入2 次删除
  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')
           }
           // // 检验必填信息