|
@@ -52,11 +52,12 @@ const useStore = defineStore("pptWork", {
|
|
|
const { blob } = getJsonToBlob()
|
|
|
fileUpload(`${this.id}ppt`, blob, `${this.id}/`, false, { isLoading: false })
|
|
|
.then(url => {
|
|
|
+ const _time = Date.now()
|
|
|
httpAjaxErrMsg(putTeacherChapterKnowledgeMaterial, {
|
|
|
id: this.id,
|
|
|
dataJson: JSON.stringify({
|
|
|
- coverImg: this.coverImg,
|
|
|
- jsonUrl: url
|
|
|
+ coverImg: this.coverImg + `?v=_${_time}`, // 加上时间戳,防止资源更新之后的缓存
|
|
|
+ jsonUrl: url + `?v=_${_time}`
|
|
|
})
|
|
|
}).then(res => {
|
|
|
if (res.code === 200) {
|