123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- // import Auth from '@/views/layout/auth'
- // type metaType = {
- // isRegister: boolean
- // }
- export default [
- {
- path: '/',
- component: () => import('@/views/home/index'),
- meta: {
- title: '首页',
- highlightPath: '/home',
- isdark: false
- }
- },
- {
- path: '/home',
- name: 'home',
- component: () => import('@/views/home/index'),
- meta: {
- title: '首页',
- highlightPath: '/home',
- isdark: false
- }
- },
- {
- path: '/downLoad',
- name: 'downLoad',
- component: () => import('@/views/downLoad/index'),
- meta: {
- title: '下载',
- highlightPath: '/downLoad',
- isdark: true
- }
- },
- {
- path: '/musicLibrary',
- name: 'musicLibrary',
- component: () => import('@/views/musicLibrary/index'),
- meta: {
- title: '谱库',
- highlightPath: '/musicLibrary',
- index: 2,
- isdark: false
- }
- },
- {
- path: '/muiscDetial',
- name: 'muiscDetial',
- component: () => import('@/views/muiscDetial/index'),
- meta: {
- title: '曲谱详情',
- highlightPath: '/musicLibrary',
- index: 2,
- isdark: true
- }
- },
- {
- path: '/searchdetail',
- name: 'searchdetail',
- component: () => import('@/views/musicLibrary/searchdetail'),
- meta: {
- title: '搜索',
- index: 3,
- highlightPath: '/musicLibrary',
- isdark: true
- }
- },
- {
- path: '/albumDetail',
- name: 'albumDetail',
- component: () => import('@/views/albumDetail'),
- meta: {
- title: '专辑详情',
- index: 3,
- highlightPath: '/musicLibrary',
- isdark: true
- }
- },
- {
- path: '/videoDetailList',
- name: 'videoDetailList',
- component: () => import('@/views/videoDetailList'),
- meta: {
- title: '视频课',
- index: 3,
- highlightPath: '/videoDetailList',
- isdark: false
- }
- },
- {
- path: '/videoDetail',
- name: 'videoDetail',
- component: () => import('@/views/videoDetailList/videoDetail'),
- meta: {
- title: '视频课详情',
- index: 3,
- highlightPath: '/videoDetailList',
- isdark: true
- }
- },
- //
- {
- path: '/teacherAuth',
- name: 'teacherAuth',
- component: () => import('@/views/role-auth/teacherAuth'),
- meta: {
- title: '达人认证',
- isdark: true
- }
- },
- {
- path: '/musicAuth',
- name: 'musicAuth',
- component: () => import('@/views/role-auth/musicAuth'),
- meta: {
- title: '音乐人认证',
- isdark: true
- }
- },
- {
- path: '/userInfo',
- name: 'userInfo',
- meta: { title: '用户信息', index: 5, isdark: true },
- component: () => import('@/views/user-info/index'),
- redirect: '/userInfo/practiceSetting',
- children: [
- {
- path: '/userInfo/practiceSetting',
- name: 'userInfoPracticeSetting',
- component: () => import('@/views/user-info/practice-setting'),
- meta: { title: '陪练课', index: 2, isdark: true }
- },
- {
- path: '/userInfo/liveClass',
- name: 'userInfoLiveClass',
- component: () => import('@/views/user-info/live-class'),
- meta: { title: '直播课', index: 3, isdark: true }
- },
- {
- path: '/userInfo/liveOperation',
- name: 'userInfoLiveOperation',
- component: () => import('@/views/user-info/live-operation'),
- meta: {
- title: '直播课',
- index: 4,
- hidden: true,
- activeMenu: 'userInfoLiveClass',
- isdark: true
- }
- },
- {
- path: '/userInfo/videoClass',
- name: 'userInfoVideoClass',
- component: () => import('@/views/user-info/video-class'),
- meta: { title: '视频课', index: 4, isdark: true }
- },
- {
- path: '/userInfo/videoOperation',
- name: 'userInfoVideoOperation',
- component: () => import('@/views/user-info/video-operation'),
- meta: {
- title: '视频课',
- index: 4,
- hidden: true,
- activeMenu: 'userInfoVideoClass',
- isdark: true
- }
- },
- {
- path: '/userInfo/musicClass',
- name: 'userInfoMusicClass',
- component: () => import('@/views/user-info/music-class'),
- meta: { title: '上传曲谱', index: 5, isdark: true }
- },
- {
- path: '/userInfo/musicOperation',
- name: 'userInfoMusicOperation',
- component: () => import('@/views/user-info/music-operation'),
- meta: {
- title: '上传曲谱',
- index: 4,
- hidden: true,
- activeMenu: 'userInfoMusicClass',
- isdark: true
- }
- },
- {
- path: '/userInfo/myCollect',
- name: 'userInfoMyCollect',
- component: () => import('@/views/student-info/my-score'),
- meta: {
- title: '我的曲谱',
- index: 5,
- hidden: false,
- activeMenu: 'userInfoMyCollect',
- isdark: true
- }
- },
- {
- path: '/userInfo/myFans',
- name: 'userInfoMyFans',
- component: () => import('@/views/user-info/my-fans'),
- meta: { title: '我的粉丝', index: 4, hidden: true, isdark: true }
- },
- {
- path: '/userInfo/openLive',
- name: 'userInfoOpenLive',
- component: () => import('@/views/user-info/open-live'),
- meta: {
- title: '开通直播',
- index: 4,
- hidden: true,
- activeMenu: 'userInfoLiveClass',
- isdark: true
- }
- }
- ]
- },
- {
- path: '/studentInfo',
- name: 'studentInfo',
- component: () => import('@/views/student-info'),
- meta: { title: '用户信息', index: 5, isdark: true },
- redirect: '/studentInfo/myScore',
- children: [
- {
- path: '/studentInfo/myScore',
- name: 'studentInfoMyScore',
- component: () => import('@/views/student-info/my-score'),
- meta: { title: '我的曲谱', index: 5, isdark: true }
- },
- {
- path: '/studentInfo/myFollow',
- name: 'studentInfoMyFollow',
- component: () => import('@/views/student-info/my-follow'),
- meta: { title: '我关注的老师', index: 5, hidden: true, isdark: true }
- }
- ]
- },
- {
- path: '/404',
- name: '404',
- component: () => import('@/views/404'),
- meta: { title: '404', isdark: true }
- },
- {
- path: '/:pathMatch(.*)*',
- component: () => import('@/views/404'),
- meta: {
- title: '404 Not Fund',
- isdark: true
- }
- }
- ]
|