Need to declare content type for app to recognize body as JSON
This commit is contained in:
parent
d2d5458a70
commit
7e057bc924
|
@ -202,6 +202,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
url : '/frame',
|
url : '/frame',
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
|
dataType : 'json',
|
||||||
success : web.frameSuccess
|
success : web.frameSuccess
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -218,6 +220,7 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
url : '/dir',
|
url : '/dir',
|
||||||
body : JSON.stringify({ dir : dir}),
|
body : JSON.stringify({ dir : dir}),
|
||||||
|
contentType: 'application/json; charset=utf-8',
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
success : web.setDirSuccess
|
success : web.setDirSuccess
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue