mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
如果本来就是 formData 则跳过转换
This commit is contained in:
parent
e45d5e9f27
commit
465e456803
@ -248,7 +248,10 @@ export function wrapFetcher(
|
||||
api.requestAdaptor && (api = api.requestAdaptor(api) || api);
|
||||
|
||||
if (api.data && (hasFile(api.data) || api.dataType === 'form-data')) {
|
||||
api.data = object2formData(api.data, api.qsOptions);
|
||||
api.data =
|
||||
api.data instanceof FormData
|
||||
? api.data
|
||||
: object2formData(api.data, api.qsOptions);
|
||||
} else if (
|
||||
api.data &&
|
||||
typeof api.data !== 'string' &&
|
||||
|
Loading…
Reference in New Issue
Block a user