Explorar o código

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

Signed-off-by: 清溪先生 <usfree2021@163.com>
清溪先生 %!s(int64=3) %!d(string=hai) anos
pai
achega
5a48c5dba7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ruoyi-ui/src/utils/ruoyi.js

+ 1 - 1
ruoyi-ui/src/utils/ruoyi.js

@@ -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]) + "&";