use dataType json for ajax posts
This commit is contained in:
parent
a8b62ea392
commit
d2d5458a70
|
@ -217,9 +217,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
url : '/dir',
|
url : '/dir',
|
||||||
body : {
|
body : JSON.stringify({ dir : dir}),
|
||||||
dir : dir
|
dataType : 'json',
|
||||||
},
|
|
||||||
success : web.setDirSuccess
|
success : web.setDirSuccess
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue