[代码完善](v2.5): v2.5 代码优化
增加对 hash 模式的支持,hash 模式的部署方式文档已更新
This commit is contained in:
@@ -61,6 +61,7 @@ export const constantRouterMap = [
|
||||
]
|
||||
|
||||
export default new Router({
|
||||
// mode: 'hash',
|
||||
mode: 'history',
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRouterMap
|
||||
|
||||
Reference in New Issue
Block a user