修改上传文件大小尺寸,修复任务问题
This commit is contained in:
@@ -82,7 +82,7 @@ class ossClient {
|
|||||||
// 设置并发上传的分片数量。
|
// 设置并发上传的分片数量。
|
||||||
parallel: 8,
|
parallel: 8,
|
||||||
// 设置分片大小。默认值为1 MB,最小值为100 KB。
|
// 设置分片大小。默认值为1 MB,最小值为100 KB。
|
||||||
partSize: 100 * 1024,
|
partSize: 1024 * 1024 *1 ,
|
||||||
mime: file.type
|
mime: file.type
|
||||||
}
|
}
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -403,6 +403,7 @@ export default {
|
|||||||
const date = new Date();
|
const date = new Date();
|
||||||
const houzhui = "." + data.name.substr(data.name.lastIndexOf(".") + 1);
|
const houzhui = "." + data.name.substr(data.name.lastIndexOf(".") + 1);
|
||||||
const name = "app/" + "test-duanju" + houzhui;
|
const name = "app/" + "test-duanju" + houzhui;
|
||||||
|
// const name = "app/" + "sy-duanju" + houzhui;
|
||||||
const fileRes = await this.ossClient.partUpload(name, data.raw, (p) => {
|
const fileRes = await this.ossClient.partUpload(name, data.raw, (p) => {
|
||||||
this.percentage = Math.floor(p * 100);
|
this.percentage = Math.floor(p * 100);
|
||||||
console.log(this.percentage);
|
console.log(this.percentage);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export const $renwuType={
|
export const $renwuType={
|
||||||
1:'一次性任务',
|
3:'一次性任务',
|
||||||
2:'普通任务',
|
1:'普通任务',
|
||||||
3:'打卡任务',
|
2:'打卡任务',
|
||||||
9:'其他',
|
9:'其他',
|
||||||
}
|
}
|
||||||
export const $jumpType={
|
export const $jumpType={
|
||||||
|
|||||||
Reference in New Issue
Block a user