修改提交
This commit is contained in:
parent
5ce7be9b85
commit
2cecb97652
|
|
@ -61,8 +61,9 @@ function login(){
|
|||
});
|
||||
}
|
||||
|
||||
},error(event, xhr, settings, error){
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,9 +34,11 @@ $(document).ajaxError(function (event, xhr, settings, error) {
|
|||
function modifyRequestData(settings) {
|
||||
var requestData = settings.data;
|
||||
var modifiedData = requestData;
|
||||
if(settings.headers){
|
||||
if(settings.headers['decrypt']=='decrypt'){
|
||||
return modifiedData;
|
||||
}
|
||||
}
|
||||
if(settings.type=='POST'){
|
||||
if(settings.contentType.indexOf('multipart/form-data')!=-1){
|
||||
return modifiedData;
|
||||
|
|
|
|||
Loading…
Reference in New Issue