|
|
@@ -1795,8 +1795,10 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
// 用_pptData生成json文件,并生成File对象
|
|
|
- const pptJsonStr = JSON.stringify(_pptData2, null, 2);
|
|
|
+ const pptJsonStr = JSON.stringify(_pptData, null, 2);
|
|
|
+ const pptJsonStr2 = JSON.stringify(_pptData2, null, 2);
|
|
|
const pptJsonFile = new File([pptJsonStr], this.courseName + ".json", { type: "application/json" });
|
|
|
+ const pptJsonFile2 = new File([pptJsonStr2], this.courseName + ".json", { type: "application/json" });
|
|
|
// 你可以根据需要将pptJsonFile上传或保存
|
|
|
|
|
|
let _url = await this.uploadFile(pptJsonFile);
|
|
|
@@ -1863,7 +1865,7 @@ export default {
|
|
|
this.copyCourse(this.cid);
|
|
|
}
|
|
|
this.loadgetCourseDetail();
|
|
|
- this.uploadFile2(pptJsonFile, this.courseId);
|
|
|
+ this.uploadFile2(pptJsonFile2, this.courseId);
|
|
|
this.addOp3(
|
|
|
"1",
|
|
|
"",
|
|
|
@@ -1899,12 +1901,14 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
// 用_pptData生成json文件,并生成File对象
|
|
|
- const pptJsonStr = JSON.stringify(_pptData2, null, 2);
|
|
|
+ const pptJsonStr = JSON.stringify(_pptData, null, 2);
|
|
|
+ const pptJsonStr2 = JSON.stringify(_pptData2, null, 2);
|
|
|
const pptJsonFile = new File([pptJsonStr], this.courseName + ".json", { type: "application/json" });
|
|
|
+ const pptJsonFile2 = new File([pptJsonStr2], this.courseName + ".json", { type: "application/json" });
|
|
|
// 你可以根据需要将pptJsonFile上传或保存
|
|
|
console.log(_url)
|
|
|
let _url = await this.uploadFile(pptJsonFile);
|
|
|
- this.uploadFile2(pptJsonFile, this.cid);
|
|
|
+ this.uploadFile2(pptJsonFile2, this.cid);
|
|
|
|
|
|
this.pptCourseJson.pptData = _url;
|
|
|
|