| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/monitor/job-log', |
| | | path: '/system/oss-config', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['monitor:job:list'], |
| | | permissions: ['system:oss:list'], |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | component: () => import('@/views/monitor/job/log'), |
| | | name: 'JobLog', |
| | | meta: { title: '调度日志', activeMenu: '/monitor/job' } |
| | | component: () => import('@/views/system/oss/config'), |
| | | name: 'OssConfig', |
| | | meta: { title: '配置管理', activeMenu: '/system/oss' } |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ] |
| | | |
| | | // 防止连续点击多次路由报错 |
| | | 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 |