1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| export const constantRouterMap = [ { path: '/login', component: () => import('@/views/login/index'), hidden: true }, { path: '/404', component: () => import('@/views/404'), hidden: true }, { path: '/', component: Layout, redirect: '/dashboard', name: 'Dashboard', children: [{ path: 'dashboard', component: () => import('@/views/dashboard/index'), meta: { title: '硅谷课堂后台管理系统', icon: 'dashboard' } }] }, { path: '/vod', component: Layout, redirect: '/vod/course/list', name: 'Vod', meta: { title: '点播管理', icon: 'el-icon-bank-card' }, alwaysShow: true, children: [ { path: 'teacher/list', name: 'TeacherList', component: () => import('@/views/vod/teacher/list'), meta: { title: '讲师列表' } }, { path: 'teacher/create', name: 'TeacherCreate', component: () => import('@/views/vod/teacher/form'), meta: { title: '添加讲师' }, hidden: true }, { path: 'teacher/edit/:id', name: 'TeacherEdit', component: () => import('@/views/vod/teacher/form'), meta: { title: '编辑讲师' }, hidden: true } ] }, { path: '*', redirect: '/404', hidden: true } ]
|