Authored by wangtao

Merge branch 'master-500-dev' of http://113.200.75.45:82/monitor_v3/hg-monitor-w…

…eb into master-500-dev
... ... @@ -2034,14 +2034,29 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
type: "get",
success: function (res) {
if (res.success) {
var lgn = localStorage.getItem("lgn");
if (res.str && res.str.indexOf(lgn) != -1) {
refresh();
if (res.str && res.str.length>0) {
var lgn = localStorage.getItem("lgn");
var userNames = res.str.split(",");
if (isStrInArray(lgn,userNames)){ //当当前用户是配置的永久登录用户时,进行首页自动刷新
refresh();
}
}
}
}
});
}
/**
* 判定数组包含指定字符串
* */
function isStrInArray(str, arr) {
let n = arr.length;
for (let i = 0; i < n; i++) {
if (arr[i] == str) {
return true;
}
}
return false;
}
function refresh(){
setInterval(function (){
loadBizInfo();
... ...