feature/2.9.42310.01-接口fetch重新封装

This commit is contained in:
黎永顺 2023-11-07 11:26:08 +08:00
parent 560af8a703
commit 858b694568
1 changed files with 1 additions and 1 deletions

View File

@ -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);