|
@@ -262,7 +262,7 @@ const getTimeCourse = (id, item) => {
|
|
|
schoolType: "",
|
|
|
area: "",
|
|
|
coursePackageName: "AI课程",
|
|
|
- courseId:id,
|
|
|
+ courseId: id,
|
|
|
courseName: item.title,
|
|
|
courseGrade: selectGrand.value,
|
|
|
courseTime: Math.round(middleTime),
|
|
@@ -272,7 +272,11 @@ const getTimeCourse = (id, item) => {
|
|
|
setTimeout(() => {
|
|
|
params.endTime = new Date().toLocaleString().replace(/\//g, "-")
|
|
|
console.log(params, interValtTime)
|
|
|
- axios.post("//pbl.cocorobo.cn/api/szdjg/sync/class", JSON.stringify(params)).then(res => {
|
|
|
+ axios.post("//pbl.cocorobo.cn/api/szdjg/sync/class", JSON.stringify(params), {
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
console.log(res)
|
|
|
})
|
|
|
}, interValtTime);
|