文件同步功能BUG修复
This commit is contained in:
parent
d07944e4ad
commit
b73a057a9b
|
@ -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清除当前页所有文件缓存
|
||||
removeLocalFiles(this.currentSCFileList)
|
||||
this.currentSCFileList.filter((item) => {
|
||||
item.async = false
|
||||
})
|
||||
ElMessageBox.confirm(
|
||||
'是否确认重载当前资源,重载后将清除本页资源从新下载线上资源?',
|
||||
'提示',
|
||||
{
|
||||
confirmButtonText: '是',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
removeLocalFiles(this.currentSCFileList)
|
||||
this.currentSCFileList.filter((item) => {
|
||||
item.async = false
|
||||
})
|
||||
})
|
||||
},
|
||||
asyncAllFile() {
|
||||
this.isLoading = true
|
||||
|
|
Loading…
Reference in New Issue