Commit cc5c28c2 by ‘巴博尔’

修改router的mode

parent ad2676b6
...@@ -178,7 +178,7 @@ Router.prototype.replace = function push(location) { ...@@ -178,7 +178,7 @@ Router.prototype.replace = function push(location) {
export default new Router({ export default new Router({
base: process.env.VUE_APP_CONTEXT_PATH, base: process.env.VUE_APP_CONTEXT_PATH,
mode: 'history', // 去掉url中的# mode: 'hash', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment