登录失效提示

This commit is contained in:
暮光:城中城
2019-04-11 20:08:05 +08:00
parent a6c1360593
commit 3bb18069ad
7 changed files with 60 additions and 4 deletions

View File

@@ -186,6 +186,12 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction
},
complete : function(msg) {
if (msg.responseText.startWith("<!doctype html>")) {
if (msg.responseText.indexOf("THIS_IS_LOGIN_PAGE_FLAG") > 0) {
Toast.error('操作失败,登录已失效,请登陆后重试', 3000);
return;
}
}
if(typeof completeFunction == "function") {
completeFunction(msg,id);
}