From 4cd1f21628b88f266cd2634fc41c27f035ae9e3b Mon Sep 17 00:00:00 2001 From: RenCheng Date: Tue, 4 Mar 2025 17:50:36 +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/fileManage/modules/SliceUpload.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/fileManage/modules/SliceUpload.vue b/src/views/fileManage/modules/SliceUpload.vue index 0112239..a45f563 100644 --- a/src/views/fileManage/modules/SliceUpload.vue +++ b/src/views/fileManage/modules/SliceUpload.vue @@ -276,7 +276,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('taskId', this.taskId) @@ -395,7 +395,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 = '/file/uoloadFile'