huang_an 1 年之前
父節點
當前提交
9dd6331039
共有 3 個文件被更改,包括 6 次插入8 次删除
  1. 二進制
      dist.zip
  2. 5 5
      src/router/index.js
  3. 1 3
      src/views/sourceLink.vue

二進制
dist.zip


+ 5 - 5
src/router/index.js

@@ -25,7 +25,6 @@ const router = new VueRouter({
  * 路由守卫
  */
 router.beforeEach((to, from, next) => {
-
   if (!from.path.includes(REDIRECT_PATH)) {
     NProgress.start();
   }
@@ -57,10 +56,11 @@ router.beforeEach((to, from, next) => {
       if (to.meta) {
         if (to.meta.source && to.meta.source == 2) {
           document.title = to.meta.title;
-          next({
-            path: `/sourceLink`,
-            query: { link: to.meta.path }
-          });
+          // next({
+          //   path: `/sourceLink`,
+          //   query: { link: to.meta.path }
+          // });
+          window.open(`/sourceLink?link=${to.meta.path}`, '_blank');
           return;
         }
       }

+ 1 - 3
src/views/sourceLink.vue

@@ -163,8 +163,7 @@
         logoImg: null,
         projectName: null,
         token: '',
-        link: '',
-      
+        link: ''
       };
     },
     computed: {
@@ -191,7 +190,6 @@
           } else {
             this.link = this.$route.query.link + `?token=${this.token}`;
           }
- 
         }
       }
     },