处理bug

This commit is contained in:
wanggeng 2022-05-17 23:10:31 +08:00
parent c68f833994
commit b2200e5ccb

View File

@ -168,10 +168,9 @@ layui.define(function(exports) {
var kvs = item.split('='); var kvs = item.split('=');
if (kvs.length == 1) { if (kvs.length == 1) {
paramsObj[kvs[0]] = null; paramsObj[kvs[0]] = null;
continue;
} }
if (kvs.length == 2) { paramsObj[kvs[0]] = decodeURI(item.replace(kvs[0] +'=', ''));
paramsObj[kvs[0]] = decodeURI(kvs[1]);
}
} }
return paramsObj; return paramsObj;
} }