调整 upload.web 请求返回
This commit is contained in:
parent
71e886f752
commit
e81d83b06a
|
|
@ -9,7 +9,7 @@ export class Upload {
|
|||
body: formData2,
|
||||
method: 'POST',
|
||||
};
|
||||
const json = await (await fetch(uploadUrl, options)).json();
|
||||
return json;
|
||||
const result = await fetch(uploadUrl, options);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ class Upload {
|
|||
body: formData2,
|
||||
method: 'POST',
|
||||
};
|
||||
const json = await (await fetch(uploadUrl, options)).json();
|
||||
return json;
|
||||
const result = await fetch(uploadUrl, options);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
exports.Upload = Upload;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export class Upload {
|
|||
method: 'POST',
|
||||
};
|
||||
|
||||
const json = await (await fetch(uploadUrl, options)).json();
|
||||
return json;
|
||||
const result = await fetch(uploadUrl, options);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue