ysy 1 год назад
Родитель
Сommit
cdd43a04b6
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/router/index.js

+ 5 - 5
src/router/index.js

@@ -56,11 +56,11 @@ router.beforeEach((to, from, next) => {
       if (to.meta) {
       if (to.meta) {
         if (to.meta.source && to.meta.source == 2) {
         if (to.meta.source && to.meta.source == 2) {
           document.title = to.meta.title;
           document.title = to.meta.title;
-          // next({
-          //   path: `/sourceLink`,
-          //   query: { link: to.meta.path }
-          // });
-          window.open(`/sourceLink?link=${to.meta.path}`, '_blank');
+          next({
+            path: `/sourceLink`,
+            query: { link: to.meta.path }
+          });
+          // window.open(`/sourceLink?link=${to.meta.path}`, '_blank');
           return;
           return;
         }
         }
       }
       }