From 7523e0475f0febab97751b0d1cbc2cc1677714fe Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 6 Dec 2020 11:06:32 +0800 Subject: [PATCH] =?UTF-8?q?get=E8=AF=B7=E6=B1=82params=E6=B7=BB=E5=8A=A0nu?= =?UTF-8?q?ll=E5=80=BC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index ece18a2..0dcb7ed 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -27,7 +27,7 @@ service.interceptors.request.use(config => { 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 + ']';