路由模式改为hash

This commit is contained in:
qinjie 2021-08-30 17:42:30 +08:00
parent 0212dfe7b3
commit cb2d422f19
1 changed files with 3 additions and 3 deletions

View File

@ -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)
})