提交 c644f503 authored 作者: 吕本才's avatar 吕本才

修改路由模式

上级 c05b7fc8
...@@ -343,7 +343,7 @@ Router.prototype.push = function push(location) { ...@@ -343,7 +343,7 @@ Router.prototype.push = function push(location) {
} }
export default new Router({ export default new Router({
mode: 'history', // 去掉url中的# mode: 'hash', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论