$.ajaxSetup({
complete: function(xhr) {
console.log(xhr)
/*if(xhr.responseJSON.code == 401){
parent.location.href = baseURL + 'login.html';
}*/
if(JSON.parse(xhr.responseText).code == 1){
location.href = "/front/user/login/toLoginPage.html";
}
}
});
該配置需要引入纔有用