From 74b09f11d8d63ef52bcc7c341bb5938a6da1ff93 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Tue, 4 Mar 2025 17:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=89=87=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datalink/modules/SliceUpload.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/datalink/modules/SliceUpload.vue b/src/views/datalink/modules/SliceUpload.vue index a6693fd..cbff71b 100644 --- a/src/views/datalink/modules/SliceUpload.vue +++ b/src/views/datalink/modules/SliceUpload.vue @@ -262,7 +262,7 @@ export default { formData.append('fileSize', fileSize) formData.append('md5Value', md5Value) formData.append('shareTotal', shareTotal) - formData.append('shareIndex', shareIndex+1) + formData.append('shareIndex', shareIndex) formData.append('currShareM5', currShareM5) formData.append('file', file) formData.append("dataLinkType",this.dataLinkType); @@ -380,7 +380,7 @@ export default { const currentInfo = this.getSlicingInfo(file, currIndex, slicingSize) const result = new File([currentInfo], currIndex, { type: file.type, lastModified: Date.now() }) let fileMD5Value = await this.getMd5(result, result.size) - const formData = this.buildFileFormData(file.name, file.size, this.fileMD5[file.uid], sumSlicingCount, currIndex, result, true,fileMD5Value) + const formData = this.buildFileFormData(file.name, file.size, this.fileMD5[file.uid], sumSlicingCount, (currIndex + 1), result, true,fileMD5Value) // 开始上传 const url = '/fileDataLink/uploadFile'