|
@@ -1,7 +1,11 @@
|
|
const paymentType = (window as any).paymentType
|
|
const paymentType = (window as any).paymentType
|
|
|
|
+import { RouteRecordRaw } from 'vue-router'
|
|
|
|
+import Accompany from '@/views/accompany/index'
|
|
|
|
+import AccompanycCategory from '@/views/accompany/category'
|
|
|
|
+import AccompanycMusicList from '@/views/accompany/music-list'
|
|
|
|
|
|
// 需要登录的路由
|
|
// 需要登录的路由
|
|
-export const router = [
|
|
|
|
|
|
+export const router: RouteRecordRaw[] = [
|
|
{
|
|
{
|
|
path: '/lessonCourseware',
|
|
path: '/lessonCourseware',
|
|
name: 'lessonCourseware',
|
|
name: 'lessonCourseware',
|
|
@@ -27,6 +31,26 @@ export const router = [
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ path: '/accompany',
|
|
|
|
+ name: 'accompany',
|
|
|
|
+ component: Accompany,
|
|
|
|
+ meta: {
|
|
|
|
+ title: '云教练'
|
|
|
|
+ },
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: '',
|
|
|
|
+ name: 'category',
|
|
|
|
+ component: AccompanycCategory
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: 'musicList',
|
|
|
|
+ name: 'music-list',
|
|
|
|
+ component: AccompanycMusicList
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
path: '/information-detail',
|
|
path: '/information-detail',
|
|
name: 'information-detail',
|
|
name: 'information-detail',
|
|
component: () => import('@/views/information/information-detail'),
|
|
component: () => import('@/views/information/information-detail'),
|