修改上传超时为10分钟
This commit is contained in:
@@ -1015,7 +1015,7 @@ export default function FilesUpload() {
|
||||
const timeoutPromise = new Promise<FileUploadResponse>((_, reject) => {
|
||||
setTimeout(() => {
|
||||
reject(new Error('上传超时'));
|
||||
}, 30000); // 30秒超时
|
||||
}, 600000); // 30秒超时
|
||||
});
|
||||
|
||||
// 使用Promise.race处理超时
|
||||
|
||||
Reference in New Issue
Block a user