[TOC]
创建 src/views/course-info/index.vue
// views/course-info/index.vue
class=“course-info”>课程详情
设置路由规则
// router/index.js
…
{
path: ‘/course-info/:courseId/‘,
name: ‘course-info’,
component: () => import(/ webpackChunkName: ‘course-info’ /
‘@/views/course/info’),
props: true
},
…
设置跳转
// course/components/CourseContentList.vue
…