Browse Source

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

Signed-off-by: 清溪先生 <usfree2021@163.com>
master
清溪先生 3 years ago
parent
commit
5a48c5dba7
  1. 2
      ruoyi-ui/src/utils/ruoyi.js

2
ruoyi-ui/src/utils/ruoyi.js

@ -210,7 +210,7 @@ export function tansParams(params) { @@ -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