diff --git a/src/api/courseChaptersApi.ts b/src/api/courseChaptersApi.ts index 51d0c75..ccfebcf 100644 --- a/src/api/courseChaptersApi.ts +++ b/src/api/courseChaptersApi.ts @@ -92,24 +92,12 @@ export const deleteCourse = (params: any) => { method: 'DELETE', }) } -// /api/objective_contents/ +// /objective_contents/ // 获取详情 export const getCourseInfo = (params: any) => { return request({ -<<<<<<< HEAD - url: '/objective_contents/' + params.id, - method: 'get', - // params -======= -<<<<<<< HEAD - url: '/api/objective_contents/' + params.id, - method: 'get', - params, -======= url: '/objective_contents/' + params.id, method: "get", // params ->>>>>>> 1a620e19de970965f426e07348b1dbc4be900eaf ->>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a }) } diff --git a/src/views/course/CourseObjectives.vue b/src/views/course/CourseObjectives.vue index 2e1fc03..485a28d 100644 --- a/src/views/course/CourseObjectives.vue +++ b/src/views/course/CourseObjectives.vue @@ -3,12 +3,9 @@ import { ref, onMounted } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import { id } from 'element-plus/es/locales.mjs' import * as echarts from 'echarts' -<<<<<<< HEAD + // import { useRoute } from 'vue-router' -======= -<<<<<<< HEAD -import { useRoute } from 'vue-router' ->>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a + import { getCourseList, addCourse, @@ -16,14 +13,7 @@ import { deleteCourse, getCourseInfo, } from '@/api/courseChaptersApi' -<<<<<<< HEAD import { useRoute, useRouter } from 'vue-router' -======= -======= -import { useRoute ,useRouter} from 'vue-router' -import { getCourseList, addCourse, editCourse, deleteCourse, getCourseInfo } from '@/api/courseChaptersApi' ->>>>>>> 1a620e19de970965f426e07348b1dbc4be900eaf ->>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a const route = useRoute() const router = useRouter() // id : 分目标id