develoop
xy 5 months ago
parent 1316abe92d
commit 0ffe772345
  1. 14
      src/api/courseChaptersApi.ts
  2. 14
      src/views/course/CourseObjectives.vue

@ -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
})
}

@ -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

Loading…
Cancel
Save