|
@@ -1,6 +1,6 @@
|
|
|
import { defineStore } from "pinia"
|
|
|
import { store } from "./index"
|
|
|
-import { getTeacherChapterKnowledgeMaterial, putTeacherChapterKnowledgeMaterial } from "@/api/pptOperate"
|
|
|
+import { getTeacherChapterKnowledgeMaterial, putTeacherChapterKnowledgeMaterial, putChapterKnowledgeMaterialUpdate } from "@/api/pptOperate"
|
|
|
import { httpAjaxErrMsg } from "@/plugins/httpAjax"
|
|
|
import { useRoute } from "vue-router"
|
|
|
import LoadingBar from "@/plugins/loadingBar"
|
|
@@ -57,7 +57,7 @@ const useStore = defineStore("pptWork", {
|
|
|
fileUpload(`${this.id}ppt`, blob, `${this.id}/`, false, { isLoading: false })
|
|
|
.then(url => {
|
|
|
const _time = Date.now()
|
|
|
- httpAjaxErrMsg(putTeacherChapterKnowledgeMaterial, {
|
|
|
+ httpAjaxErrMsg(queryParams.fromType === "PLATFORM" ? putChapterKnowledgeMaterialUpdate : putTeacherChapterKnowledgeMaterial, {
|
|
|
id: this.id,
|
|
|
dataJson: JSON.stringify({
|
|
|
coverImg: this.coverImg + `?v=_${_time}`, // 加上时间戳,防止资源更新之后的缓存
|