[TOC]准备⼯作,在 course/ 中创建 create.vue 组件,并设置路由与 list.vue 点击的跳转操作。 设置 Card 进⾏基础布局。// course/create.vue class=“course-create”> 添加课程 export default { name: ‘CourseCreate’ } 添加路由// router/index.js … { path: ‘/course/create’, name: ‘course-create’, component: () => import(/* webpackChunkName: ‘course-create’ */ ‘@/views/course/create.vue’) } ] 点击添加课程进⾏路由跳转// course/list.vue … style=“float: right; margin-top: -10px” type=“primary” @click=“$router.push({ name: ‘course-create’ })” >添加课程 …