From 6800a12014b45908929f18d99bc56637212813ec Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: 星期日, 13 十二月 2020 14:54:17 +0800
Subject: [PATCH] !138 修改Set可能导致嵌套的问题 Merge pull request !138 from BecomeDream/N/A

---
 ruoyi-ui/src/utils/request.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js
index 15f7fcf..7cc6043 100644
--- a/ruoyi-ui/src/utils/request.js
+++ b/ruoyi-ui/src/utils/request.js
@@ -25,7 +25,7 @@
     for (const propName of Object.keys(config.params)) {
       const value = config.params[propName];
       var part = encodeURIComponent(propName) + "=";
-      if (typeof(value) !== "undefined") {
+      if (value && typeof(value) !== "undefined") {
         if (typeof value === 'object') {
           for (const key of Object.keys(value)) {
             let params = propName + '[' + key + ']';

--
Gitblit v1.9.2