diff --git a/src/router/index.js b/src/router/index.js index ca18bb4..b55f79b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -203,8 +203,8 @@ Router.prototype.replace = function push(location) { }; export default new Router({ - // mode: "history", // 去掉url中的# - // base: "/", + mode: "history", // 去掉url中的# + base: "/", scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, });