From 563e11d9c1447b8865c9fa86ca3b8ec6505e5f35 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 6 Dec 2020 11:05:02 +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 15f7fcf0f..7cc60430e 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -25,7 +25,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 + ']';