[代码完善](v2.5): v2.5 代码优化

增加对 hash 模式的支持,hash 模式的部署方式文档已更新
This commit is contained in:
ZhengJie
2020-06-06 14:35:47 +08:00
parent 17aefdd1b4
commit 11ae4ad994
3 changed files with 5 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ export const constantRouterMap = [
]
export default new Router({
// mode: 'hash',
mode: 'history',
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap