src/router/index.js @@ -111,7 +111,7 @@ // 导出路由 在 main.js 里使用 const createRouter = () => new Router({ mode: "history", mode: "hash", // base: window.getServerJson.context, scrollBehavior: () => ({ y: 0 }), routes: constantRoutes