修改分片逻辑

This commit is contained in:
RenCheng 2025-03-04 19:37:59 +08:00
parent 290988a2e8
commit 46590b2af1

View File

@ -205,7 +205,7 @@ export default {
if (currentRow) { if (currentRow) {
// 0 // 0
currentRow.percentage = 0 currentRow.percentage = 0
const _20M = 20 * 1024 * 1024 // const _20M = 20 * 1024 * 1024 //
if (file.size > _20M) { // 20M if (file.size > _20M) { // 20M
this.uploadByPieces({ // this.uploadByPieces({ //
file, // file, //
@ -281,7 +281,8 @@ export default {
} }
try { try {
const res = await verifyFileExist({ fileMD5Value }) const res = await verifyFileExist({ fileMD5Value })
if (res.exist) { // console.log(res);
if (res.result.exist) { //
currentRow.percentage = 100 currentRow.percentage = 100
currentRow.uploadStatus = 2 currentRow.uploadStatus = 2
currentRow.result = res currentRow.result = res