import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/system',
  name: 'system',
  meta,
  redirect: { name: 'system-organization' },
  component: layoutHeaderAside,
  children: (pre => [
   { path: 'organization', name: `${pre}organization`, component: () => import('@/views/system/organization'), meta: { meta, title: ' 部门管理',cache:true } },
	 { path: 'teacher', name: `${pre}teacher`, component: () => import('@/views/system/teacher'), meta: { meta, title: '教工管理',cache:true } },
	 { path: 'student', name: `${pre}student`, component: () => import('@/views/system/student'), meta: { meta, title: '学生管理',cache:true } },
	 { path: 'sysLog', name: `${pre}sysLog`, component: () => import('@/views/system/sysLog'), meta: { meta, title: '系统日志',cache:true } },
	  { path: 'classMange', name: `${pre}classMange`, component: () => import('@/views/system/classMange'), meta: { meta, title: '班级管理',cache:true } }
  ])('system-')
}