计划课程

master
lion 1 month ago
parent 010c3cb947
commit feee785aa6

@ -31,68 +31,54 @@ import Layout from '@/layout'
* a base page that does not have permission requirements * a base page that does not have permission requirements
* all roles can be accessed * all roles can be accessed
*/ */
export const constantRoutes = [ export const constantRoutes = [
{ {
path: '/login', path: '/login',
component: () => import('@/views/login/index'), component: () => import('@/views/login/index'),
hidden: true hidden: true
}, },
{ {
path: '/404', path: '/404',
component: () => import('@/views/404'), component: () => import('@/views/404'),
hidden: true hidden: true
}, },
{ {
path: '/test', path: '/test',
component: () => import('@/views/component/test.vue'), component: () => import('@/views/component/test.vue'),
hidden: true hidden: true
}, },
{ {
path: '/info', path: '/info',
component: Layout, component: Layout,
children: [{ children: [{
path: 'password', path: 'password',
component: () => import('@/views/system/password'), component: () => import('@/views/system/password'),
name: '密码修改', name: '密码修改',
meta: { meta: {
title: '密码修改' title: '密码修改'
} }
}], }],
hidden: true hidden: true
}, },
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/dashboard', redirect: '/dashboard',
children: [{ children: [{
path: 'dashboard', path: 'dashboard',
name: '课程发布管理', name: '课程发布管理',
component: () => import('@/views/course/index'), component: () => import('@/views/course/index'),
meta: { meta: {
title: '课程发布管理', title: '课程发布管理',
icon: 'dashboard' icon: 'dashboard'
} }
}], }],
hidden: true hidden: true
}, },
{ {
path: '/schedule-overview', path: '/course/txl',
component: Layout, component: Layout,
redirect: '/schedule-overview/index', redirect: '/dashboard',
children: [{
path: 'index',
name: '课程排期总览',
component: () => import('@/views/scheduleOverview/index'),
meta: {
title: '课程排期总览',
icon: 'table'
}
}]
},
{
path: '/course/txl',
component: Layout,
redirect: '/dashboard',
children: [{ children: [{
path: '/course/txl', path: '/course/txl',
name: '通讯录', name: '通讯录',
@ -153,13 +139,13 @@ export const constantRoutes = [
}], }],
hidden: true hidden: true
} }
] ]
/** /**
* asyncRoutes * asyncRoutes
* the routes that need to be dynamically loaded based on user roles * the routes that need to be dynamically loaded based on user roles
*/ */
export const asyncRoutes = [ export const asyncRoutes = [
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
{ {
path: '*', path: '*',
redirect: '/404', redirect: '/404',

Loading…
Cancel
Save