diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index 7a39828..142ad98 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -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