소스 검색

fix: 修复错误的跳转逻辑

Jinyao 5 년 전
부모
커밋
609eb9d626
1개의 변경된 파일과 0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      src/router/index.ts

+ 0 - 6
src/router/index.ts

@@ -88,12 +88,6 @@ router.beforeEach((to, from, next) => {
   }
 });
 
-router.beforeEach((to, from, next) => {
-  if (to.name !== HOME || !isUserLoggedIn()) {
-    next();
-  }
-});
-
 router.afterEach((to, from) => {
   if (to.matched.some((record) => record.meta.hideNavigator)) {
     document.getElementsByTagName('header')[0]!.style.display = 'none';