|
|
|
@ -272,7 +272,7 @@ export default { |
|
|
|
try { |
|
|
|
try { |
|
|
|
// 创建 AbortController 实例用于取消请求 |
|
|
|
// 创建 AbortController 实例用于取消请求 |
|
|
|
const controller = new AbortController(); |
|
|
|
const controller = new AbortController(); |
|
|
|
const timeoutId = setTimeout(() => controller.abort(), 5000); // 5秒超时 |
|
|
|
const timeoutId = setTimeout(() => controller.abort(), 60000); // 5秒超时 |
|
|
|
|
|
|
|
|
|
|
|
// 1. 将Buffer转为File对象(对齐<input type="file">的File格式) |
|
|
|
// 1. 将Buffer转为File对象(对齐<input type="file">的File格式) |
|
|
|
const fileObj = new File([file.fileBuffer], file.fileName, { |
|
|
|
const fileObj = new File([file.fileBuffer], file.fileName, { |
|
|
|
|