发布 4.1.0

This commit is contained in:
疯狂的狮子li
2022-04-24 14:09:19 +08:00
parent 2cf283b8c6
commit d5520817bd
146 changed files with 7725 additions and 1893 deletions

View File

@ -164,7 +164,14 @@ export const dynamicRoutes = [
}
]
// 防止连续点击多次路由报错
let routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(err => err)
}
export default new Router({
base: process.env.VUE_APP_CONTEXT_PATH,
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes