提交 fd9cfba8 authored 作者: vipcxj's avatar vipcxj

fix: datasource相关接口参数处理函数未能过滤掉值为undefined的参数

上级 8d0311bb
......@@ -57,10 +57,10 @@ const makeQueryParams = ({ pst, psz, filters = [], sortBys = [], sortTypes = [],
].filter(v => v && !isUndefined((v[1])));
};
const makeParams = (params, { filters = [], sortBys = [], sortTypes = [], qParams = {} }) => {
const makeParams = (otherParams, { filters = [], sortBys = [], sortTypes = [], params = {} }) => {
return [
...toPairs(params),
...makeQueryParams({ filters, sortBys, sortTypes, qParams }),
...toPairs(otherParams),
...makeQueryParams({ filters, sortBys, sortTypes, params }),
].filter(v => v && !isUndefined((v[1])));
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论