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

This commit is contained in:
疯狂的狮子Li 2022-03-25 15:21:27 +08:00
parent 9d1d74c022
commit b624648115

View File

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