We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a8419 commit 490ca95Copy full SHA for 490ca95
1 file changed
src/utils/request/index.ts
@@ -84,7 +84,11 @@ const transform: AxiosTransform = {
84
if (formatDate) {
85
formatRequestDate(params);
86
}
87
- if (Reflect.has(config, 'data') && config.data && Object.keys(config.data).length > 0) {
+ if (
88
+ Reflect.has(config, 'data') &&
89
+ config.data &&
90
+ (Object.keys(config.data).length > 0 || data instanceof FormData)
91
+ ) {
92
config.data = data;
93
config.params = params;
94
} else {
0 commit comments