From 79472708d93eaf719ba71e757304f70cfd7c25c0 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 22 Dec 2020 16:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2get=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=80=BC=E4=B8=BAfalse=E6=88=960=E7=AD=89?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=80=BC=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E7=A1=AE=E7=9A=84=E4=BC=A0=E5=8F=82?= 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 0dcb7ed53..24351b0dd 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 (value && typeof(value) !== "undefined") { + if (value !== null && typeof(value) !== "undefined") { if (typeof value === 'object') { for (const key of Object.keys(value)) { let params = propName + '[' + key + ']';