Authored by 鲁尚清

Merge branch 'master' of http://192.168.1.136:82/monitor_v3/hg-monitor-web into …

…master-v32-lushangqing
@@ -675,15 +675,23 @@ layui.extend({ @@ -675,15 +675,23 @@ layui.extend({
675 // 登录页面,展示大屏不进行token过期验证 675 // 登录页面,展示大屏不进行token过期验证
676 if (location.hash.indexOf('#/user/login') == -1 && location.hash.indexOf('#/bigscreen/daping') == -1) { 676 if (location.hash.indexOf('#/user/login') == -1 && location.hash.indexOf('#/bigscreen/daping') == -1) {
677 // 调用测试接口,出现过期则会跳转到登录页面 677 // 调用测试接口,出现过期则会跳转到登录页面
678 - admin.req({  
679 - url: domainName + "/api-web/common/test"  
680 - , type: "get"  
681 - , async: false  
682 - , done: function (data) {  
683 - tryFunc();  
684 - }  
685 - }); 678 + try {
  679 + admin.req({
  680 + url: domainName + "/api-web/common/test"
  681 + , type: "get"
  682 + , async: false
  683 + , done: function (data) {
  684 + tryIndex = 1;
  685 + tryFunc();
  686 + }
  687 + });
  688 + }catch (e) {
  689 + // 服务异常:服务重启,网络问题等不可访问等因素
  690 + tryIndex = 1;
  691 + tryFunc();
  692 + }
686 } else { 693 } else {
  694 + tryIndex = 1;
687 tryFunc(); 695 tryFunc();
688 } 696 }
689 }) 697 })