guhongwei 5 년 전
부모
커밋
572f8eba53
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/router/index.js

+ 6 - 6
src/router/index.js

@@ -99,12 +99,12 @@ const router = new Router({
     },
   ],
 });
-router.beforeEach((to, from, next) => {
-  let fPath = from.path;
-  let tPath = to.fullPath;
-  if (fPath === '/index') window.open(tPath);
-  else next();
-});
+// router.beforeEach((to, from, next) => {
+//   let fPath = from.path;
+//   let tPath = to.fullPath;
+//   if (fPath === '/index') window.open(tPath);
+//   else next();
+// });
 router.afterEach((to, from, next) => {
   window.scrollTo(0, 0);
 });