修改为hash模式
This commit is contained in:
parent
5f66bf5627
commit
85efb6f0e3
|
|
@ -177,8 +177,7 @@ Router.prototype.replace = function push(location) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history', // 去掉url中的#
|
mode: 'hash', // 使用 hash 模式,URL 会有 #
|
||||||
base: process.env.NODE_ENV === 'production' ? '/' : '/',
|
|
||||||
scrollBehavior: () => ({ y: 0 }),
|
scrollBehavior: () => ({ y: 0 }),
|
||||||
routes: constantRoutes
|
routes: constantRoutes
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue