路由模式改为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)
|
||||
|
||||
export default new Router({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
mode: 'hash', // history
|
||||
// base: process.env.BASE_URL,
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRouterMap.concat(asyncRouterMap)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue