v3.8.2 开启TopNav没有子菜单情况隐藏侧边栏

This commit is contained in:
YunaiV
2022-03-20 22:58:13 +08:00
parent 82a3a8387c
commit 1a2c03bc7e
44 changed files with 76 additions and 71 deletions

View File

@ -164,6 +164,12 @@ export const constantRoutes = [
}
]
// 防止连续点击多次路由报错
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_APP_NAME ? process.env.VUE_APP_APP_NAME : "/",
mode: 'history', // 去掉url中的#