Ver código fonte

企业信息完成度提示

lifanagju_citu 5 meses atrás
pai
commit
222cc8f046
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/permission.js

+ 2 - 1
src/permission.js

@@ -16,6 +16,7 @@ const { start, done } = useNProgress()
 router.beforeEach(async (to, from, next) => {
   localStorage.setItem('routerTest', to.path) // 本地环境保存代码热更新会导致路径缺失问题
   const tokenIndex = getIsEnterprise() ? 1: 2
+  debugger
   start()
   // loadStart()
   if (to.path === '/enterpriseVerification') {
@@ -34,7 +35,7 @@ router.beforeEach(async (to, from, next) => {
       dialogExtend('positionAd')
     }
     // 企业信息完成度提示
-    else if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref' && tokenIndex === 1)) {
+    else if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref') && tokenIndex === 1) {
       if (to.path !== '/recruit/enterprise/position/add') { // 除了点击企业登录免费职位广告提示跳转路由不提示
         const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
         localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')