修复提出的bug
This commit is contained in:
@@ -267,15 +267,15 @@ const confirmFun = async () => {
|
||||
const demandId = await createDemandApiFun(fromData);
|
||||
// 没有demandId就是创建需求失败
|
||||
if (demandId && fromData.attachments?.length > 0) {
|
||||
for (let index = 0; index < fromData.attachments.length; index++) {
|
||||
// const form = new FormData();
|
||||
// form.append('fileType', String(FILE_TYPE.DEMAND_ATTACHMENTS));
|
||||
// form.append('uuid ', demandId);
|
||||
// form.append('fileName ', fromData.attachments[index].name);
|
||||
// form.append('file ', fromData.attachments[index].raw);
|
||||
// form.append('projectId ', String(fromData.projectId));
|
||||
// upload(`${PREFIX}demand/uploadDemandFiles`, form);
|
||||
}
|
||||
// for (let index = 0; index < fromData.attachments.length; index++) {
|
||||
// const form = new FormData();
|
||||
// form.append('fileType', String(FILE_TYPE.DEMAND_ATTACHMENTS));
|
||||
// form.append('uuid ', demandId);
|
||||
// form.append('fileName ', fromData.attachments[index].name);
|
||||
// form.append('file ', fromData.attachments[index].raw);
|
||||
// form.append('projectId ', String(fromData.projectId));
|
||||
// upload(`${PREFIX}demand/uploadDemandFiles`, form);
|
||||
// }
|
||||
}
|
||||
const params = {
|
||||
fileList: fromData.attachments.filter((item: any) => item.raw), // 文件列表
|
||||
|
||||
Reference in New Issue
Block a user