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({
|
||||
method : 'POST',
|
||||
url : '/dir',
|
||||
body : {
|
||||
dir : dir
|
||||
},
|
||||
body : JSON.stringify({ dir : dir}),
|
||||
dataType : 'json',
|
||||
success : web.setDirSuccess
|
||||
})
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue