修复提出的bug

This commit is contained in:
weibl
2026-01-22 20:55:42 +08:00
parent 84e57096bb
commit 404467f04d
9 changed files with 51 additions and 22 deletions

View File

@@ -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), // 文件列表