|
@@ -70,9 +70,17 @@ let routerPush = Router.prototype.push;
|
|
|
Router.prototype.push = function push(location) {
|
|
|
return routerPush.call(this, location).catch(err => err)
|
|
|
}
|
|
|
-
|
|
|
-export default new Router({
|
|
|
+const router = new Router({
|
|
|
mode: 'history', // 去掉url中的#
|
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
|
routes: constantRoutes
|
|
|
-})
|
|
|
+})
|
|
|
+router.afterEach((to, from) => {
|
|
|
+
|
|
|
+ // // 三维报建
|
|
|
+ // if (to.path == "/checkmodel") {
|
|
|
+
|
|
|
+ // }
|
|
|
+
|
|
|
+})
|
|
|
+export default router;
|