feature/2.9.42310.01-接口fetch重新封装
This commit is contained in:
parent
560af8a703
commit
858b694568
|
|
@ -70,7 +70,7 @@ const getFetchParams = (method, params, header = {}) => {
|
|||
if (server === "") {
|
||||
obj.credentials = "include";
|
||||
}
|
||||
if (!_.isEmpty(params)) {
|
||||
if (!_.isEmpty(params) && Object.prototype.toString.call(params) === "[object Object]") {
|
||||
obj.body = JSON.stringify(getFd(params));
|
||||
} else {
|
||||
obj.body = JSON.stringify(params);
|
||||
|
|
|
|||
Loading…
Reference in New Issue