提交代码

This commit is contained in:
jiang 2024-12-02 02:35:10 +08:00
parent ccb2d52094
commit 6fc0b8d11d
2 changed files with 4 additions and 1 deletions

View File

@ -37,6 +37,9 @@ const downloadFileChunk = (fileUrl, chunkIndex, startByte, endByte) => {
responseType: 'blob', // 以 Blob 类型的响应返回数据
timeout: 600000, // 设置超时时间为 10 秒10000 毫秒)
headers: {
encryptRequest :false,
checkIntegrity :false,
encryptResponse: false,
'Range': `bytes=${startByte}-${endByte}`, // 定义请求的字节范围
}
})

View File

@ -194,7 +194,7 @@ export default {
this.uploadChunks(nextFile);
},
beforeUpload(file) {
const maxSize = 2 * 1024 * 1024*1024; // 5MB
const maxSize = 10 * 1024 * 1024*1024; // 5MB
if (file.size > maxSize) {
this.$message.error('文件大小不能超过 2GB');
return false; //