|
@@ -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) => {
|
|
router.afterEach((to, from, next) => {
|
|
window.scrollTo(0, 0);
|
|
window.scrollTo(0, 0);
|
|
});
|
|
});
|