mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-06-06 22:09:40 +00:00
!195 修复【增加对空字符串参数的过滤】提交的参数判断问题
Merge pull request !195 from 清溪先生/master
This commit is contained in:
commit
7af84cb923
@ -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…
Reference in New Issue
Block a user