修改上传文件大小尺寸,修复任务问题

This commit is contained in:
2024-12-12 14:27:05 +08:00
parent d1e25e9545
commit a2039fe1e4
3 changed files with 5 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ class ossClient {
// 设置并发上传的分片数量。
parallel: 8,
// 设置分片大小。默认值为1 MB最小值为100 KB。
partSize: 100 * 1024,
partSize: 1024 * 1024 *1 ,
mime: file.type
}
const {

View File

@@ -403,6 +403,7 @@ export default {
const date = new Date();
const houzhui = "." + data.name.substr(data.name.lastIndexOf(".") + 1);
const name = "app/" + "test-duanju" + houzhui;
// const name = "app/" + "sy-duanju" + houzhui;
const fileRes = await this.ossClient.partUpload(name, data.raw, (p) => {
this.percentage = Math.floor(p * 100);
console.log(this.percentage);

View File

@@ -1,7 +1,7 @@
export const $renwuType={
1:'一次性任务',
2:'普通任务',
3:'打卡任务',
3:'一次性任务',
1:'普通任务',
2:'打卡任务',
9:'其他',
}
export const $jumpType={