Ver código fonte

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

Signed-off-by: 清溪先生 <usfree2021@163.com>
清溪先生 3 anos atrás
pai
commit
5a48c5dba7
1 arquivos alterados com 1 adições e 1 exclusões
  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]) + "&";