去掉上传软件超时设置
This commit is contained in:
+2
-2
@@ -120,8 +120,8 @@ export function uploadFile(formData, options = {}) {
|
||||
url: "/platform/uploadfile",
|
||||
method: "post",
|
||||
data: formData,
|
||||
// 大安装包 / 极弱网:2 小时;勿设置 Content-Type(由浏览器自动带 boundary)
|
||||
timeout: 2 * 60 * 60 * 1000,
|
||||
// 不设置超时时间,等待文件上传完毕;勿设置 Content-Type(由浏览器自动带 boundary)
|
||||
timeout: 0,
|
||||
};
|
||||
if (typeof options.onUploadProgress === "function") {
|
||||
config.onUploadProgress = options.onUploadProgress;
|
||||
|
||||
Reference in New Issue
Block a user