|
|
@@ -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;
|
|
|
}
|
|
|
}
|