疯狂的狮子li
2021-08-17 5bfb2dae1356ab9de027f107c50483d8c57d53c4
ruoyi-ui/src/utils/download.js
@@ -42,10 +42,12 @@
      if (value !== null && typeof(value) !== "undefined") {
        if (typeof value === 'object') {
          for (const key of Object.keys(value)) {
            if (value[key] !== null && typeof (value[key]) !== 'undefined') {
            let params = propName + '[' + key + ']';
            var subPart = encodeURIComponent(params) + "=";
              let subPart = encodeURIComponent(params) + "="
            urlparams += subPart + encodeURIComponent(value[key]) + "&";
          }
          }
        } else {
          urlparams += part + encodeURIComponent(value) + "&";
        }