取消创作模式下文件上传超时时间
This commit is contained in:
@@ -1985,7 +1985,7 @@ const handleCreationFieldUpload = async (node: any, field: any, file: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
const uploadRes = await uploadFile(raw);
|
||||
const uploadRes = await uploadFile(raw, { timeout: 0 });
|
||||
if (!uploadRes || !uploadRes.data || !uploadRes.data.fileURL) throw new Error('上传失败:未返回文件URL');
|
||||
const fileUrl = uploadRes.data.fileAddressPrefix ? `${uploadRes.data.fileAddressPrefix}${uploadRes.data.fileURL}` : uploadRes.data.fileURL;
|
||||
if (!creationFieldFiles[key]) creationFieldFiles[key] = [];
|
||||
|
||||
Reference in New Issue
Block a user