From bc6c59545f50e9d9cdbb0b954d4d93467f05a7df Mon Sep 17 00:00:00 2001 From: RenCheng Date: Wed, 4 Jun 2025 23:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=98=E5=9C=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datalink/modules/SliceUpload.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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({ // 这里走分片上传逻辑