import type { RouteRecordRaw } from 'vue-router'
import AppLayout from '@/components/layout/Index.vue'

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/course/my',
    component: AppLayout,
    children: [
      { path: '', component: () => import('./views/List.vue') },
      { path: '/course/my/view', component: () => import('./views/View.vue') },
      // id: 章节id  courseId课程id
      { path: '/course/my/view/:id/:courseId', component: () => import('./views/ViewDetails.vue') }
    ]
  }
]
