fix 修复增加应用路径路由不生效问题

2.X
疯狂的狮子Li 3 years ago committed by Gitee
parent 3e7dd75f6d
commit e29c470cc7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -171,6 +171,7 @@ Router.prototype.push = function push(location) {
}
export default new Router({
base: process.env.VUE_APP_CONTEXT_PATH,
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes

Loading…
Cancel
Save