feat: lesson page

This commit is contained in:
Jannat Patel
2023-12-15 23:39:15 +05:30
parent e7b6001e5f
commit d2922fd361
15 changed files with 330 additions and 93 deletions

View File

@@ -21,16 +21,21 @@ const routes = [
},
{
// Create a route for path /courses/inventory-management/learn/1.1
path: '/courses/:courseName/learn/:lessonNumber',
path: '/courses/:courseName/learn/:chapterNumber-:lessonNumber',
name: 'Lesson',
component: () => import('@/pages/Lesson.vue'),
props: {},
props: true,
},
{
path: '/batches',
name: 'Batches',
component: () => import('@/pages/Batches.vue'),
},
{
path: '/batches/:batchName',
name: 'BatchDetail',
component: () => import('@/pages/BatchDetail.vue'),
},
]
let router = createRouter({