routes-admin.ts 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. // import Auth from '@/views/layout/auth'
  2. // type metaType = {
  3. // isRegister: boolean
  4. // }
  5. export default [
  6. {
  7. path: '/',
  8. component: () => import('@/views/home/index'),
  9. meta: {
  10. title: '首页',
  11. highlightPath: '/home',
  12. isdark: false
  13. }
  14. },
  15. {
  16. path: '/home',
  17. name: 'home',
  18. component: () => import('@/views/home/index'),
  19. meta: {
  20. title: '首页',
  21. highlightPath: '/home',
  22. isdark: false
  23. }
  24. },
  25. {
  26. path: '/downLoad',
  27. name: 'downLoad',
  28. component: () => import('@/views/downLoad/index'),
  29. meta: {
  30. title: '下载',
  31. highlightPath: '/downLoad',
  32. isdark: true
  33. }
  34. },
  35. {
  36. path: '/albumibrary',
  37. name: 'albumibrary',
  38. component: () => import('@/views/albumLibrary/index'),
  39. meta: {
  40. title: '专辑',
  41. highlightPath: '/albumibrary',
  42. index: 2,
  43. isdark: false
  44. }
  45. },
  46. {
  47. path: '/musicLibrary',
  48. name: 'musicLibrary',
  49. component: () => import('@/views/musicLibrary/index'),
  50. meta: {
  51. title: '曲谱',
  52. highlightPath: '/musicLibrary',
  53. index: 2,
  54. isdark: false
  55. }
  56. },
  57. {
  58. path: '/muiscDetial',
  59. name: 'muiscDetial',
  60. component: () => import('@/views/muiscDetial/index'),
  61. meta: {
  62. title: '曲谱详情',
  63. highlightPath: '/musicLibrary',
  64. index: 2,
  65. isdark: true
  66. }
  67. },
  68. {
  69. path: '/searchdetail',
  70. name: 'searchdetail',
  71. component: () => import('@/views/musicLibrary/searchdetail'),
  72. meta: {
  73. title: '搜索',
  74. index: 3,
  75. highlightPath: '/musicLibrary',
  76. isdark: true
  77. }
  78. },
  79. {
  80. path: '/albumDetail',
  81. name: 'albumDetail',
  82. component: () => import('@/views/albumDetail'),
  83. meta: {
  84. title: '专辑详情',
  85. index: 3,
  86. highlightPath: '/musicLibrary',
  87. isdark: true
  88. }
  89. },
  90. {
  91. path: '/videoDetailList',
  92. name: 'videoDetailList',
  93. component: () => import('@/views/videoDetailList'),
  94. meta: {
  95. title: '视频课',
  96. index: 3,
  97. highlightPath: '/videoDetailList',
  98. isdark: false
  99. }
  100. },
  101. {
  102. path: '/videoDetail',
  103. name: 'videoDetail',
  104. component: () => import('@/views/videoDetailList/videoDetail'),
  105. meta: {
  106. title: '视频课详情',
  107. index: 3,
  108. highlightPath: '/videoDetailList',
  109. isdark: true
  110. }
  111. },
  112. //
  113. {
  114. path: '/teacherAuth',
  115. name: 'teacherAuth',
  116. component: () => import('@/views/role-auth/teacherAuth'),
  117. meta: {
  118. title: '达人认证',
  119. isdark: true
  120. }
  121. },
  122. {
  123. path: '/musicAuth',
  124. name: 'musicAuth',
  125. component: () => import('@/views/role-auth/musicAuth'),
  126. meta: {
  127. title: '音乐人认证',
  128. isdark: true
  129. }
  130. },
  131. {
  132. path: '/userInfo',
  133. name: 'userInfo',
  134. meta: { title: '用户信息', index: 5, isdark: true },
  135. component: () => import('@/views/user-info/index'),
  136. redirect: '/userInfo/practiceSetting',
  137. children: [
  138. {
  139. path: '/userInfo/practiceSetting',
  140. name: 'userInfoPracticeSetting',
  141. component: () => import('@/views/user-info/practice-setting'),
  142. meta: { title: '陪练课', index: 2, isdark: true }
  143. },
  144. {
  145. path: '/userInfo/liveClass',
  146. name: 'userInfoLiveClass',
  147. component: () => import('@/views/user-info/live-class'),
  148. meta: { title: '直播课', index: 3, isdark: true }
  149. },
  150. {
  151. path: '/userInfo/liveOperation',
  152. name: 'userInfoLiveOperation',
  153. component: () => import('@/views/user-info/live-operation'),
  154. meta: {
  155. title: '直播课',
  156. index: 4,
  157. hidden: true,
  158. activeMenu: 'userInfoLiveClass',
  159. isdark: true
  160. }
  161. },
  162. {
  163. path: '/userInfo/videoClass',
  164. name: 'userInfoVideoClass',
  165. component: () => import('@/views/user-info/video-class'),
  166. meta: { title: '视频课', index: 4, isdark: true }
  167. },
  168. {
  169. path: '/userInfo/videoOperation',
  170. name: 'userInfoVideoOperation',
  171. component: () => import('@/views/user-info/video-operation'),
  172. meta: {
  173. title: '视频课',
  174. index: 4,
  175. hidden: true,
  176. activeMenu: 'userInfoVideoClass',
  177. isdark: true
  178. }
  179. },
  180. {
  181. path: '/userInfo/musicClass',
  182. name: 'userInfoMusicClass',
  183. component: () => import('@/views/user-info/music-class'),
  184. meta: { title: '上传曲谱', index: 5, isdark: true }
  185. },
  186. {
  187. path: '/userInfo/musicOperation',
  188. name: 'userInfoMusicOperation',
  189. component: () => import('@/views/user-info/music-operation'),
  190. meta: {
  191. title: '上传曲谱',
  192. index: 4,
  193. hidden: true,
  194. activeMenu: 'userInfoMusicClass',
  195. isdark: true
  196. }
  197. },
  198. {
  199. path: '/userInfo/myCollect',
  200. name: 'userInfoMyCollect',
  201. component: () => import('@/views/student-info/my-score'),
  202. meta: {
  203. title: '我的曲谱',
  204. index: 5,
  205. hidden: false,
  206. activeMenu: 'userInfoMyCollect',
  207. isdark: true
  208. }
  209. },
  210. {
  211. path: '/userInfo/myFans',
  212. name: 'userInfoMyFans',
  213. component: () => import('@/views/user-info/my-fans'),
  214. meta: { title: '我的粉丝', index: 4, hidden: true, isdark: true }
  215. },
  216. {
  217. path: '/userInfo/openLive',
  218. name: 'userInfoOpenLive',
  219. component: () => import('@/views/user-info/open-live'),
  220. meta: {
  221. title: '开通直播',
  222. index: 4,
  223. hidden: true,
  224. activeMenu: 'userInfoLiveClass',
  225. isdark: true
  226. }
  227. }
  228. ]
  229. },
  230. {
  231. path: '/studentInfo',
  232. name: 'studentInfo',
  233. component: () => import('@/views/student-info'),
  234. meta: { title: '用户信息', index: 5, isdark: true },
  235. redirect: '/studentInfo/myScore',
  236. children: [
  237. {
  238. path: '/studentInfo/myScore',
  239. name: 'studentInfoMyScore',
  240. component: () => import('@/views/student-info/my-score'),
  241. meta: { title: '我的曲谱', index: 5, isdark: true }
  242. },
  243. {
  244. path: '/studentInfo/myFollow',
  245. name: 'studentInfoMyFollow',
  246. component: () => import('@/views/student-info/my-follow'),
  247. meta: { title: '我关注的老师', index: 5, hidden: true, isdark: true }
  248. }
  249. ]
  250. },
  251. {
  252. path: '/404',
  253. name: '404',
  254. component: () => import('@/views/404'),
  255. meta: { title: '404', isdark: true }
  256. },
  257. {
  258. path: '/:pathMatch(.*)*',
  259. component: () => import('@/views/404'),
  260. meta: {
  261. title: '404 Not Fund',
  262. isdark: true
  263. }
  264. }
  265. ]