From e636c95ce987617fd85a5ea899819a028aa063d7 Mon Sep 17 00:00:00 2001 From: JuJu <857815116@qq.com> Date: Mon, 14 Dec 2020 16:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA=E6=97=B6?= =?UTF-8?q?=E6=90=BA=E5=B8=A6params=E7=A9=BA=E5=AF=B9=E8=B1=A1=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/utils/ruoyi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js index 2fd0431e..9e93d1f9 100644 --- a/ruoyi-ui/src/utils/ruoyi.js +++ b/ruoyi-ui/src/utils/ruoyi.js @@ -158,7 +158,7 @@ export function handleTree(data, id, parentId, children, rootId) { export function tansParams(params) { let result = '' Object.keys(params).forEach((key) => { - if (!Object.is(params[key], undefined) && !Object.is(params[key], null)) { + if (!Object.is(params[key], undefined) && !Object.is(params[key], null) && !Object.is(JSON.stringify(params[key]), '{}')) { result += encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + '&' } })