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', method: 'DELETE',
}) })
} }
// /api/objective_contents/ // /objective_contents/
// 获取详情 // 获取详情
export const getCourseInfo = (params: any) => { export const getCourseInfo = (params: any) => {
return request({ 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, url: '/objective_contents/' + params.id,
method: "get", method: "get",
// params // params
>>>>>>> 1a620e19de970965f426e07348b1dbc4be900eaf
>>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a
}) })
} }

@ -3,12 +3,9 @@ import { ref, onMounted } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { id } from 'element-plus/es/locales.mjs' import { id } from 'element-plus/es/locales.mjs'
import * as echarts from 'echarts' import * as echarts from 'echarts'
<<<<<<< HEAD
// import { useRoute } from 'vue-router' // import { useRoute } from 'vue-router'
=======
<<<<<<< HEAD
import { useRoute } from 'vue-router'
>>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a
import { import {
getCourseList, getCourseList,
addCourse, addCourse,
@ -16,14 +13,7 @@ import {
deleteCourse, deleteCourse,
getCourseInfo, getCourseInfo,
} from '@/api/courseChaptersApi' } from '@/api/courseChaptersApi'
<<<<<<< HEAD
import { useRoute, useRouter } from 'vue-router' 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 route = useRoute()
const router = useRouter() const router = useRouter()
// id id // id id

Loading…
Cancel
Save