소스 검색

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

Xiao_123 1 개월 전
부모
커밋
75ef8620fa
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/permission.js

+ 5 - 2
src/permission.js

@@ -67,8 +67,11 @@ router.beforeEach(async (to, from, next) => {
       }
     }
     if (to.fullPath === '/login') {
-      window.location.reload()
-      // next({ path: '/recruitHome' })
+      if (from.path !== '/login' && from.path !== '/') {
+        window.location.reload()
+      } else {
+        next({ path: '/recruitHome' })
+      }
     }
     // 获取字典信息
     // const dictStore = useDictStore()