文件同步功能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 KjListItem from '@/views/prepare/container/kj-list-item.vue'
|
||||||
import { getSmarttalkPage, moveSmarttalk, creatAPT } from '@/api/file'
|
import { getSmarttalkPage, moveSmarttalk, creatAPT } from '@/api/file'
|
||||||
import { toTimeText } from '@/utils/date'
|
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 {parseCataByNode, creatPPT, asyncLocalFile, removeLocalFiles} from '@/utils/talkFile'
|
||||||
import FileOperBatch from '@/views/prepare/container/file-oper-batch.vue'
|
import FileOperBatch from '@/views/prepare/container/file-oper-batch.vue'
|
||||||
import SetHomework from '@/components/set-homework/index.vue'
|
import SetHomework from '@/components/set-homework/index.vue'
|
||||||
|
@ -936,10 +936,21 @@ export default {
|
||||||
},
|
},
|
||||||
reloadFiles() {
|
reloadFiles() {
|
||||||
// TODO清除当前页所有文件缓存
|
// TODO清除当前页所有文件缓存
|
||||||
removeLocalFiles(this.currentSCFileList)
|
ElMessageBox.confirm(
|
||||||
this.currentSCFileList.filter((item) => {
|
'是否确认重载当前资源,重载后将清除本页资源从新下载线上资源?',
|
||||||
item.async = false
|
'提示',
|
||||||
})
|
{
|
||||||
|
confirmButtonText: '是',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
.then(() => {
|
||||||
|
removeLocalFiles(this.currentSCFileList)
|
||||||
|
this.currentSCFileList.filter((item) => {
|
||||||
|
item.async = false
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
asyncAllFile() {
|
asyncAllFile() {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
|
|
Loading…
Reference in New Issue