|
|
@@ -45,11 +45,11 @@ const query = function getQueryForm(data) {
|
|
|
// }
|
|
|
// }
|
|
|
// console.log(map.value);
|
|
|
- form.append("<input name='" + key + "' value='" + map.value + "'>")
|
|
|
+ form.append("<input name='" + key + "' value='" + map.value.replace(" ","%20") + "'>");
|
|
|
// form.append("<input name='" + key + "' value='" + encodeURIComponent(map.value) + "'>")
|
|
|
} else if ('array' === fetchJsType(map.value)) {
|
|
|
let string = map.value.join(',');
|
|
|
- form.append("<input name='" + key + "' value='" + string + "'>")
|
|
|
+ form.append("<input name='" + key + "' value='" + string.replace(" ","%20") + "'>");
|
|
|
// form.append("<input name='" + key + "' value='" + encodeURIComponent(string) + "'>")
|
|
|
}
|
|
|
}
|
|
|
@@ -63,7 +63,6 @@ const query = function getQueryForm(data) {
|
|
|
}
|
|
|
_hidden_div.html('');
|
|
|
_hidden_div.append(form);
|
|
|
- // console.log(form);
|
|
|
form.submit();
|
|
|
}
|
|
|
|
|
|
@@ -1209,9 +1208,7 @@ const query = function getQueryForm(data) {
|
|
|
// url path on search form option renderer
|
|
|
function searchOptionToUrlsearch() {
|
|
|
let data = (window.location.search);
|
|
|
- // let data = decodeURIComponent(window.location.search);
|
|
|
- data = decodeURIComponent(data);
|
|
|
- data.replace("\\+","%20");
|
|
|
+ data = decodeURIComponent(data).replace('%20'," ");
|
|
|
if (!!data) {
|
|
|
data = (data.substr(1)).split('&');
|
|
|
data = convertArrayToObj(data);
|