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; }