|
@@ -54,6 +54,28 @@ export const constantRoutes = [
|
|
|
meta: { title: '首页', icon: 'dashboard' }
|
|
|
}]
|
|
|
},
|
|
|
+ {
|
|
|
+ path: '/live',
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ roles: ['admin', 'editor']
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'live',
|
|
|
+ component: () => import('@/views/live/list'),
|
|
|
+ meta: { title: '日志列表', icon: 'el-icon-s-help' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'edit/:id(\\d+)',
|
|
|
+ component: () => import('@/views/live/edit'),
|
|
|
+ name: 'EditBanner',
|
|
|
+ meta: { title: '查看日志参数', noCache: true, activeMenu: '/live/list' },
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|
|
@@ -186,28 +208,6 @@ export const asyncRoutes = [
|
|
|
meta: { title: '管理员列表', icon: 'el-icon-s-help' }
|
|
|
}
|
|
|
]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/live',
|
|
|
- component: Layout,
|
|
|
- meta: {
|
|
|
- roles: ['admin', 'editor']
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'list',
|
|
|
- name: 'live',
|
|
|
- component: () => import('@/views/live/list'),
|
|
|
- meta: { title: '日志列表', icon: 'el-icon-s-help' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'edit/:id(\\d+)',
|
|
|
- component: () => import('@/views/live/edit'),
|
|
|
- name: 'EditBanner',
|
|
|
- meta: { title: '查看日志参数', noCache: true, activeMenu: '/live/list' },
|
|
|
- hidden: true
|
|
|
- }
|
|
|
- ]
|
|
|
}
|
|
|
]
|
|
|
|