From b2200e5ccbde42991ec37ea03e7688c0b8cedc71 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 17 May 2022 23:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/assets/layuiadmin/modules/restajax.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/assets/layuiadmin/modules/restajax.js b/src/main/resources/static/assets/layuiadmin/modules/restajax.js index 416635a..389af3a 100644 --- a/src/main/resources/static/assets/layuiadmin/modules/restajax.js +++ b/src/main/resources/static/assets/layuiadmin/modules/restajax.js @@ -168,10 +168,9 @@ layui.define(function(exports) { var kvs = item.split('='); if (kvs.length == 1) { paramsObj[kvs[0]] = null; + continue; } - if (kvs.length == 2) { - paramsObj[kvs[0]] = decodeURI(kvs[1]); - } + paramsObj[kvs[0]] = decodeURI(item.replace(kvs[0] +'=', '')); } return paramsObj; }