diff --git a/src/views/datalink/modules/SliceUpload.vue b/src/views/datalink/modules/SliceUpload.vue index 25ba64b..950428d 100644 --- a/src/views/datalink/modules/SliceUpload.vue +++ b/src/views/datalink/modules/SliceUpload.vue @@ -214,13 +214,16 @@ export default { currentRow.percentage = 0 const _20M = 20 * 1024 * 1024 //设置超大文件判断关闭分片 let that =this; - this.getMd5(file) + this.getMd5(file,file.size) .then((res) => { let fileMD5Value = res verifyFileExist({ fileMD5Value: fileMD5Value }) .then((res) => { if (res.result.exist) { // 跳过文件验证逻辑 that.$message.warning(file.name+'文件已存在'); + that.tableDate = that.tableDate.filter(item => item.name == file.name); + delete that.fileMD5[file.uid] + console.log(that.tableDate ) } else { // 未存在,走上传逻辑 if (file.size > _20M) { // 20M 以上分片上传 that.uploadByPieces({ // 这里走分片上传逻辑