Authored by wangtao

检查登录状态

... ... @@ -651,17 +651,17 @@ layui.extend({
connectFlg = false;
if (location.hash.indexOf('#/user/login') == -1) {
//lsq 注释掉多无提示框 2022-08-28
/* // 调用测试接口,出现过期则会跳转到登录页面
// 调用测试接口,出现过期则会跳转到登录页面
try {
$.ajax({
url: domainName + "/api-web/common/test",
type: "get",
async: false,
success: function (res) {
$('head').append('<style id="ew-tree-table-css">' + res + '</style>');
console.log("检查登录状态:",'正常')
},
error:(error)=>{
console.error("检查登录状态:",error)
if(error.status === 401){
window.top.location.reload();
return;
... ... @@ -675,7 +675,7 @@ layui.extend({
tryIndex = 1;
// 服务异常:服务重启,网络问题等不可访问等因素
tryFunc();
}*/
}
} else {
tryIndex = 1;
tryFunc();
... ...