From d2a7f52bb7031895be0b6a936fbef5176f3fc689 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Sat, 22 Feb 2025 13:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=88=86=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datalink/modules/SliceUpload.vue | 2 +- src/views/fileManage/modules/SliceUpload.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/datalink/modules/SliceUpload.vue b/src/views/datalink/modules/SliceUpload.vue index e7a05e0..f91e9ad 100644 --- a/src/views/datalink/modules/SliceUpload.vue +++ b/src/views/datalink/modules/SliceUpload.vue @@ -182,7 +182,7 @@ export default { if (currentRow) { // 当前上传进度归0 currentRow.percentage = 0 - const _20M = 20 * 1024 * 1024 + const _20M = 200000000000 * 1024 * 1024 //设置超大文件判断关闭分片 if (file.size > _20M) { // 20M 以上分片上传 this.uploadByPieces({ // 这里走分片上传逻辑 file, // 文件信息 diff --git a/src/views/fileManage/modules/SliceUpload.vue b/src/views/fileManage/modules/SliceUpload.vue index 7df1b2f..4a75bd4 100644 --- a/src/views/fileManage/modules/SliceUpload.vue +++ b/src/views/fileManage/modules/SliceUpload.vue @@ -182,7 +182,7 @@ export default { if (currentRow) { // 当前上传进度归0 currentRow.percentage = 0 - const _20M = 1 * 1024 * 1024 + const _20M = 20 * 1024 * 1024 if (file.size > _20M) { // 20M 以上分片上传 this.uploadByPieces({ // 这里走分片上传逻辑 file, // 文件信息