|
|
@@ -689,6 +689,10 @@ export default { |
|
|
|
this.uploadFileList.push(uploadFile); |
|
|
|
} |
|
|
|
}, |
|
|
|
(e, upperFile) => { |
|
|
|
this.removeFileLoadingState(upperFile.Id); |
|
|
|
this.uploadFileList = this.uploadFileList.filter(iFile => iFile.id !== upperFile.Id); |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
/** |
|
|
@@ -742,6 +746,9 @@ export default { |
|
|
|
const { folderName, levelId, id: folderId } = this.currentNodeFolder; |
|
|
|
const { archName, extension, id: fileId } = file; |
|
|
|
this.updateFileLoadState(fileId, UPLOADING, 0); |
|
|
|
const errorHandler = () => { |
|
|
|
this.removeFileLoadingState(file.id); |
|
|
|
} |
|
|
|
// const fileList = this.currentPageType === 0 ? this.folderFileList.listMyFiles : this.folderFileList.listOtherFiles; |
|
|
|
const fileKey = `${folderName}\\${archName}${extension ? `.${extension}`:''}`; |
|
|
|
system.updateFile( |
|
|
@@ -762,6 +769,7 @@ export default { |
|
|
|
const { process, hash, size, currentSize, unit } = progressData; |
|
|
|
this.updateFileLoadState(fileId, UPLOADING, process, currentSize, size, unit); |
|
|
|
}, |
|
|
|
errorHandler, |
|
|
|
); |
|
|
|
}, |
|
|
|
/** |
|
|
|