routes-school.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. import Auth from '@/views/layout/auth'
  2. import { router, rootRouter } from './routes-common'
  3. type metaType = {
  4. isRegister: boolean
  5. }
  6. // 不需要登录的路由
  7. const noLoginRouter = []
  8. export default [
  9. {
  10. path: '/',
  11. component: Auth,
  12. children: [
  13. ...router,
  14. {
  15. path: '/login',
  16. name: 'login',
  17. component: () => import('@/views/layout/login'),
  18. meta: {
  19. isRegister: false
  20. } as metaType
  21. },
  22. {
  23. path: '/home',
  24. name: 'home',
  25. component: () => import('@/school/home/index')
  26. },
  27. {
  28. path: '/my-orchestra',
  29. name: 'my-orchestra',
  30. component: () => import('@/school/orchestra/index'),
  31. meta: {
  32. title: '我的乐团'
  33. }
  34. },
  35. {
  36. path: '/create-orchestra',
  37. name: 'create-orchestra',
  38. component: () => import('@/school/orchestra/create-orchestra'),
  39. meta: {
  40. title: '新建乐团'
  41. }
  42. },
  43. {
  44. path: '/orchestra-detail',
  45. name: 'orchestra-detail',
  46. component: () => import('@/school/orchestra/orchestra-detail'),
  47. meta: {
  48. title: '乐团详情'
  49. }
  50. },
  51. {
  52. path: '/mass-message',
  53. name: 'mass-message',
  54. component: () => import('@/school/mass-message/index'),
  55. meta: {
  56. title: '群发记录'
  57. }
  58. },
  59. {
  60. path: '/create-message',
  61. name: 'create-message',
  62. component: () => import('@/school/mass-message/create-message'),
  63. meta: {
  64. title: '群发消息'
  65. }
  66. }, {
  67. path: '/content-information',
  68. name: 'content-information',
  69. component: () => import('@/school/content-information/index'),
  70. meta: {
  71. title: '资讯管理'
  72. }
  73. }, {
  74. path: '/companion-teacher',
  75. name: 'companion-teacher',
  76. component: () => import('@/school/companion-teacher/index'),
  77. meta: {
  78. title: '伴学老师'
  79. }
  80. }, {
  81. path: '/manage-teacher',
  82. name: 'manage-teacher',
  83. component: () => import('@/school/manage-teacher/index'),
  84. meta: {
  85. title: '管理老师'
  86. }
  87. }, {
  88. path: '/manage-teacher-detail',
  89. name: 'manage-teacher-detail',
  90. component: () => import('@/school/manage-teacher/manage-detail'),
  91. meta: {
  92. title: '管理老师'
  93. }
  94. },
  95. {
  96. path: '/exercise-record',
  97. name: 'exercise-record',
  98. component: () => import('@/school/exercise-record'),
  99. meta: {
  100. title: '练习记录'
  101. }
  102. },
  103. {
  104. path: '/exercis-detail',
  105. name: 'exercis-detail',
  106. component: () => import('@/school/exercise-record/exercis-detail'),
  107. meta: {
  108. title: '测评详情'
  109. }
  110. },
  111. {
  112. path: '/attendance',
  113. name: 'attendance',
  114. component: () => import('@/school/attendance/index'),
  115. meta: {
  116. title: '考勤管理'
  117. }
  118. },
  119. {
  120. path: '/student-att-day',
  121. name: 'student-att-day',
  122. component: () => import('@/school/attendance/student-att-day'),
  123. meta: {
  124. title: '考勤详情'
  125. }
  126. }
  127. ]
  128. },
  129. ...rootRouter,
  130. ...noLoginRouter
  131. ]