修复【增加对空字符串参数的过滤】提交的参数判断问题;

Signed-off-by: 清溪先生 <usfree2021@163.com>
pull/195/head
清溪先生 3 years ago
parent fca189fa73
commit 5a48c5dba7

@ -210,7 +210,7 @@ export function tansParams(params) {
if (value !== null && value !== "" && typeof (value) !== "undefined") {
if (typeof value === 'object') {
for (const key of Object.keys(value)) {
if (value[key] !== null && value !== "" && typeof (value[key]) !== 'undefined') {
if (value[key] !== null && value[key] !== "" && typeof (value[key]) !== 'undefined') {
let params = propName + '[' + key + ']';
var subPart = encodeURIComponent(params) + "=";
result += subPart + encodeURIComponent(value[key]) + "&";

Loading…
Cancel
Save