Authored by weiqingting

session失效,或者版本更新 跳登录页面

... ... @@ -382,14 +382,18 @@ edit.prototype = {
dataType: "json",
success: function(res) {
return false;
},
error: function(err) {
console.log(err);
location.href="/login";
return false;
}
};
callback && callback(options);
var error=options.error;
options.error=function(err){
console.log(err);
error&&error(err);
if(err.status==200){
location.href="/login";
}
return false;
}
if (!options.debug) {
$.ajax(options);
} else {
... ...
... ... @@ -22,7 +22,9 @@ var util = {
}
},
error: function(err) {
location.href="/login";
if(err.status==200){
location.href="/login";
}
console.log("ajax.ERROR", err);
return false;
}
... ...