1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

修改转义

This commit is contained in:
Anyon 2022-01-14 13:40:49 +08:00
parent 488b57bf39
commit 29d2178077

@ -356,7 +356,7 @@ $(function () {
vars = {}, attrs = [], elem = elem || document.createElement('a');
if (uri.indexOf('?') > -1) uri.split('?')[1].split('&').forEach(function (item) {
if (item.indexOf('=') > -1 && (temp = item.split('=')) && typeof temp[0] === 'string' && temp[0].length > 0) {
vars[temp[0]] = decodeURIComponent(temp[1].replace(/%2B/ig, '%20'));
vars[temp[0]] = encodeURIComponent(decodeURIComponent(temp[1].replace(/%2B/ig, '%20')));
}
});
uri = this.getUri(uri);