路由模式改为hash
This commit is contained in:
parent
0212dfe7b3
commit
cb2d422f19
|
@ -12,8 +12,8 @@ Router.prototype.push = function push (location, onResolve, onReject) {
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history',
|
mode: 'hash', // history
|
||||||
base: process.env.BASE_URL,
|
// base: process.env.BASE_URL,
|
||||||
scrollBehavior: () => ({ y: 0 }),
|
scrollBehavior: () => ({ y: 0 }),
|
||||||
routes: constantRouterMap.concat(asyncRouterMap)
|
routes: constantRouterMap.concat(asyncRouterMap)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue