|
@@ -1272,13 +1272,20 @@ export default {
|
|
|
false).then(res => {
|
|
|
r(200)
|
|
|
})
|
|
|
- } else if (item.blob && item.blob.includes('syllabus/')) {
|
|
|
- let blobCntr = item.scope == 'school' ? schoolBlob : privateBlob
|
|
|
- containerClient.copyFolder('paper/' + paperItem.name + '/',
|
|
|
- 'syllabus/' + item.nodeId + '/' + item.id, blobCntr, null, false).then(res => {
|
|
|
- r(200)
|
|
|
- })
|
|
|
} else {
|
|
|
+ if (item.blob && (item.blob.includes('paper/') || item.blob.includes('syllabus/'))) {
|
|
|
+ let videoSrcList = this.$editorTools.getRichTextSrc(item.question, 'video')
|
|
|
+ let audioSrcList = this.$editorTools.getRichTextSrc(item.question, 'audio')
|
|
|
+ let srcList = videoSrcList.concat(audioSrcList)
|
|
|
+ let curNoSaveArr = JSON.parse(localStorage.getItem('noSave'))
|
|
|
+ srcList.forEach(src => {
|
|
|
+ curNoSaveArr.push({
|
|
|
+ path: item.blob.includes('paper/') ? `/paper/${item.paperName}/${src}` : `/syllabus/${item.nodeId}/${item.id}/${src}`, //旧文件的相对地址
|
|
|
+ scope: item.scope
|
|
|
+ })
|
|
|
+ })
|
|
|
+ localStorage.setItem('noSave', JSON.stringify(curNoSaveArr))
|
|
|
+ }
|
|
|
const itemJsonFile = await this.$evTools
|
|
|
.createBlobItem(item)
|
|
|
let file = new File([JSON.stringify(itemJsonFile)],
|