文件同步功能BUG修复

This commit is contained in:
朱浩 2024-12-27 15:09:56 +08:00
parent d07944e4ad
commit b73a057a9b
1 changed files with 16 additions and 5 deletions

View File

@ -188,7 +188,7 @@ import FileListItem from '@/views/prepare/container/file-list-item.vue'
import KjListItem from '@/views/prepare/container/kj-list-item.vue'
import { getSmarttalkPage, moveSmarttalk, creatAPT } from '@/api/file'
import { toTimeText } from '@/utils/date'
import { ElMessage } from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
import {parseCataByNode, creatPPT, asyncLocalFile, removeLocalFiles} from '@/utils/talkFile'
import FileOperBatch from '@/views/prepare/container/file-oper-batch.vue'
import SetHomework from '@/components/set-homework/index.vue'
@ -936,10 +936,21 @@ export default {
},
reloadFiles() {
// TODO
ElMessageBox.confirm(
'是否确认重载当前资源,重载后将清除本页资源从新下载线上资源?',
'提示',
{
confirmButtonText: '是',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
removeLocalFiles(this.currentSCFileList)
this.currentSCFileList.filter((item) => {
item.async = false
})
})
},
asyncAllFile() {
this.isLoading = true