0.0.172 routes
This commit is contained in:
@@ -266,18 +266,8 @@ function getFormDataElValue($field) {
|
||||
|
||||
function formDataToQueryString (formData, forms) {
|
||||
let str = ``
|
||||
formData.forEach((index, name) => {
|
||||
let el = null;
|
||||
for (let i = 0; i < forms.length; i++) {
|
||||
let _el = forms[i].querySelector(`[data-name="${name}"]`)
|
||||
if (_el){
|
||||
el = _el;
|
||||
i = forms.length;
|
||||
}
|
||||
}
|
||||
|
||||
if (!el) return;
|
||||
let value = getFormDataElValue(el);
|
||||
formData.forEach((value, name) => {
|
||||
str+=`${name}=${value}&`;
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user