123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- import Auth from '@/views/layout/auth'
- import { router, rootRouter } from './routes-common'
- type metaType = {
- isRegister: boolean
- }
- // 不需要登录的路由
- const noLoginRouter = []
- export default [
- {
- path: '/',
- component: Auth,
- children: [
- ...router,
- {
- path: '/login',
- name: 'login',
- component: () => import('@/views/layout/login'),
- meta: {
- isRegister: false
- } as metaType
- },
- {
- path: '/home',
- name: 'home',
- component: () => import('@/school/home/index')
- },
- {
- path: '/my-orchestra',
- name: 'my-orchestra',
- component: () => import('@/school/orchestra/index'),
- meta: {
- title: '我的乐团'
- }
- },
- {
- path: '/create-orchestra',
- name: 'create-orchestra',
- component: () => import('@/school/orchestra/create-orchestra'),
- meta: {
- title: '新建乐团'
- }
- },
- {
- path: '/orchestra-detail',
- name: 'orchestra-detail',
- component: () => import('@/school/orchestra/orchestra-detail'),
- meta: {
- title: '乐团详情'
- }
- },
- {
- path: '/mass-message',
- name: 'mass-message',
- component: () => import('@/school/mass-message/index'),
- meta: {
- title: '群发记录'
- }
- },
- {
- path: '/create-message',
- name: 'create-message',
- component: () => import('@/school/mass-message/create-message'),
- meta: {
- title: '群发消息'
- }
- }, {
- path: '/content-information',
- name: 'content-information',
- component: () => import('@/school/content-information/index'),
- meta: {
- title: '资讯管理'
- }
- }, {
- path: '/companion-teacher',
- name: 'companion-teacher',
- component: () => import('@/school/companion-teacher/index'),
- meta: {
- title: '伴学老师'
- }
- }, {
- path: '/manage-teacher',
- name: 'manage-teacher',
- component: () => import('@/school/manage-teacher/index'),
- meta: {
- title: '管理老师'
- }
- }, {
- path: '/manage-teacher-detail',
- name: 'manage-teacher-detail',
- component: () => import('@/school/manage-teacher/manage-detail'),
- meta: {
- title: '管理老师'
- }
- },
- {
- path: '/exercise-record',
- name: 'exercise-record',
- component: () => import('@/school/exercise-record'),
- meta: {
- title: '练习记录'
- }
- },
- {
- path: '/exercis-detail',
- name: 'exercis-detail',
- component: () => import('@/school/exercise-record/exercis-detail'),
- meta: {
- title: '测评详情'
- }
- },
- {
- path: '/attendance',
- name: 'attendance',
- component: () => import('@/school/attendance/index'),
- meta: {
- title: '考勤管理'
- }
- },
- {
- path: '/student-att-day',
- name: 'student-att-day',
- component: () => import('@/school/attendance/student-att-day'),
- meta: {
- title: '考勤详情'
- }
- }
- ]
- },
- ...rootRouter,
- ...noLoginRouter
- ]
|