routes-common.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. import Auth from '@/views/layout/auth';
  2. import rootRouter from './router-root';
  3. type metaType = {
  4. isRegister: boolean;
  5. };
  6. export default [
  7. {
  8. path: '/',
  9. component: Auth,
  10. children: [
  11. {
  12. path: '/login',
  13. name: 'login',
  14. component: () => import('@/views/layout/login'),
  15. meta: {
  16. isRegister: false
  17. } as metaType
  18. },
  19. {
  20. path: '/tempo-practice',
  21. name: 'tempo-practice',
  22. component: () => import('@/views/tempo-practice'),
  23. meta: {
  24. title: '节奏练习'
  25. }
  26. },
  27. {
  28. path: '/order-detail',
  29. name: 'order-detail',
  30. component: () => import('@/views/student-register/order-detail'),
  31. meta: {
  32. title: '订单详情'
  33. }
  34. },
  35. {
  36. path: '/shopAddress',
  37. name: 'shopAddress',
  38. component: () => import('@/views/student-register/shop-address/index'),
  39. meta: {
  40. title: '支付详情'
  41. }
  42. },
  43. {
  44. path: '/addressOperation',
  45. name: 'addressOperation',
  46. component: () =>
  47. import('@/views/student-register/shop-address/address-operation'),
  48. meta: {
  49. title: '收货地址'
  50. }
  51. },
  52. {
  53. path: '/member-center',
  54. name: 'member-center',
  55. component: () => import('@/views/member-center/index'),
  56. meta: {
  57. title: '乐器AI学练工具'
  58. }
  59. },
  60. {
  61. path: '/exercise-record',
  62. name: 'exercise-record',
  63. component: () => import('@/views/exercise-record/index'),
  64. meta: {
  65. title: '学练统计'
  66. }
  67. },
  68. {
  69. path: '/knowledge-library',
  70. name: 'knowledge-library',
  71. component: () => import('@/views/knowledge-library/index'),
  72. meta: {
  73. title: '知识库'
  74. }
  75. },
  76. {
  77. path: '/unit-detail',
  78. name: 'unit-detail',
  79. component: () => import('@/views/knowledge-library/unit-detail'),
  80. meta: {
  81. title: '知识库'
  82. }
  83. },
  84. {
  85. path: '/select-points',
  86. name: 'select-points',
  87. component: () => import('@/views/knowledge-library/select-points'),
  88. meta: {
  89. title: '选择知识点'
  90. }
  91. },
  92. {
  93. path: '/wroing-book',
  94. name: 'wroing-book',
  95. component: () => import('@/views/knowledge-library/wroing-book/index'),
  96. meta: {
  97. title: '错题本'
  98. }
  99. },
  100. {
  101. path: '/wroing-stat',
  102. name: 'wroing-stat',
  103. component: () =>
  104. import('@/views/knowledge-library/wroing-book/woring-stat'),
  105. meta: {
  106. title: '错题统计'
  107. }
  108. },
  109. {
  110. path: '/ai-exam',
  111. name: 'ai-exam',
  112. component: () =>
  113. import('@/views/knowledge-library/wroing-book/ai-exam'),
  114. meta: {
  115. title: '智能组卷'
  116. }
  117. },
  118. {
  119. path: '/practice-mode',
  120. name: 'practice-mode',
  121. component: () => import('@/views/knowledge-library/practice-mode'),
  122. meta: {
  123. title: '练习模式'
  124. }
  125. },
  126. {
  127. path: '/error-question-mode',
  128. name: 'error-question-mode',
  129. component: () =>
  130. import('@/views/knowledge-library/error-question-mode'),
  131. meta: {
  132. title: '错题练习'
  133. }
  134. },
  135. {
  136. path: '/examination-mode',
  137. name: 'examination-mode',
  138. component: () => import('@/views/knowledge-library/examination-mode'),
  139. meta: {
  140. title: '模拟测试'
  141. }
  142. },
  143. {
  144. path: '/courseware-list',
  145. name: 'courseware-list',
  146. component: () => import('@/views/courseware-list/index'),
  147. meta: {
  148. title: '教材列表'
  149. }
  150. },
  151. {
  152. path: '/collection-record',
  153. name: 'collection-record',
  154. component: () => import('@/views/collection-record/index'),
  155. meta: {
  156. title: '我的订单'
  157. }
  158. },
  159. {
  160. path: '/collection-record-detail',
  161. name: 'collection-record-detail',
  162. component: () => import('@/views/collection-record-detail/index'),
  163. meta: {
  164. title: '开通详情'
  165. }
  166. },
  167. {
  168. path: '/co-ai',
  169. component: () => import('@/views/co-ai/baseIndex'),
  170. meta: {
  171. title: 'AI学练'
  172. }
  173. },
  174. {
  175. path: '/co-ai-detail',
  176. component: () => import('@/views/co-ai/index'),
  177. meta: {
  178. title: 'AI学练'
  179. }
  180. },
  181. {
  182. path: '/courseware-play',
  183. component: () => import('@/views/courseware-play/index'),
  184. meta: {
  185. title: '课件播放'
  186. }
  187. },
  188. {
  189. path: '/creation',
  190. component: () => import('@/views/creation/index'),
  191. meta: {
  192. title: '作品详情'
  193. }
  194. },
  195. {
  196. path: '/creation-edit',
  197. component: () => import('@/views/creation/edit/index'),
  198. meta: {
  199. title: '编辑'
  200. }
  201. },
  202. {
  203. path: '/instrumentDetail',
  204. component: () => import('@/views/information/instrument-detail'),
  205. meta: {
  206. title: '乐器百科详情'
  207. }
  208. },
  209. {
  210. path: '/famousMusicDetail',
  211. component: () => import('@/views/information/famous-music-detail'),
  212. meta: {
  213. title: '名曲鉴赏详情'
  214. }
  215. },
  216. {
  217. path: '/musicianDetail',
  218. component: () => import('@/views/information/musician-detail'),
  219. meta: {
  220. title: '音乐家详情'
  221. }
  222. },
  223. {
  224. path: '/hotMusicMore',
  225. component: () => import('@/views/hot-music-more'),
  226. meta: {
  227. title: '曲谱列表'
  228. }
  229. },
  230. {
  231. path: '/activationCode',
  232. component: () => import('@/views/activation-code'),
  233. meta: {
  234. title: '激活码'
  235. }
  236. },
  237. {
  238. path: '/activationRecord',
  239. component: () => import('@/views/activation-code/record'),
  240. meta: {
  241. title: '激活记录'
  242. }
  243. }
  244. ]
  245. },
  246. ...rootRouter
  247. ];