yn_hxy_web/hxy-web/js/public/public_utils.js

15 lines
314 B
JavaScript
Raw Normal View History

2024-07-26 18:15:22 +08:00
//AJAJX 调用方法拦截器
function success(data,textStatus, jqXhr){
if(data.code==201){
layer.msg(data.msg)
}else if(data.code==401){
window.location.href = LOGIN_PATH;
}
2024-08-16 09:20:11 +08:00
//layer.msg("数据调用成功")
2024-07-26 18:15:22 +08:00
}
/**
* 异常调用
*/
function error(event, xhr, settings, error){
layer.msg("error")
}