jsp中token失效

$(document).ajaxComplete(function (event, xhr, options) {
    
    
  var res = JSON.parse(xhr.responseText);
   var code = res.errorCode;
   console.log("code", code);
   if (code && code == "10001") {
    
    
       App.alertDialog(res.description, function () {
    
    

           window.location.href = TS.cfg.SYSTEM_URL + "/login";
       });
   }
});

猜你喜欢

转载自blog.csdn.net/weixin_42580704/article/details/109488502