mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 10:38:23 +08:00
fix: 修正formData类型的数据会被错误过滤的问题 (#272)
This commit is contained in:
parent
71a841929a
commit
490ca9570d
|
@ -84,7 +84,11 @@ const transform: AxiosTransform = {
|
|||
if (formatDate) {
|
||||
formatRequestDate(params);
|
||||
}
|
||||
if (Reflect.has(config, 'data') && config.data && Object.keys(config.data).length > 0) {
|
||||
if (
|
||||
Reflect.has(config, 'data') &&
|
||||
config.data &&
|
||||
(Object.keys(config.data).length > 0 || data instanceof FormData)
|
||||
) {
|
||||
config.data = data;
|
||||
config.params = params;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user