Explorar o código

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

lifanagju_citu hai 6 meses
pai
achega
9e6ffe2825
Modificáronse 1 ficheiros con 7 adicións e 5 borrados
  1. 7 5
      src/permission.js

+ 7 - 5
src/permission.js

@@ -27,11 +27,13 @@ router.beforeEach(async (to, from, next) => {
     if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref')) {
       const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
       localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')
-      setTimeout(() => {
-        Confirm('系统提示', '企业信息设置未完善,是否前往完善?').then(() => {
-          window.location.href = href
-        })
-      }, 4000);
+      if (to.path !== '/recruit/enterprise/entInfoSetting') {
+        setTimeout(() => {
+          Confirm('系统提示', '企业信息设置未完善,是否前往完善?').then(() => {
+            window.location.href = href
+          })
+        }, 4000)
+      }
     }
     if (to.path === '/login') {
       next({ path: '/recruitHome' })