src/router/index.js
@@ -113,7 +113,7 @@ // 导出路由 在 main.js 里使用 const createRouter = () => new Router({ mode: "history", mode: "hash", // base: window.getServerJson.context, scrollBehavior: () => ({ y: 0 }), routes: constantRoutes @@ -188,8 +188,7 @@ // window.sessionStorage.removeItem("routeName") } } }) }); // router.beforeEach((to, from, next) => { // must call `next` // console.log(to, from)