Authored by xwx

首页-【无】-长期登录账户自动刷新

... ... @@ -118,6 +118,8 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
}
//加载右下角弹窗
loadRightBottomTips();
//长期登录账户自动刷新
getForeverUser();
//加载业务信息
function loadBizInfo() {
... ... @@ -2025,6 +2027,26 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
}
});
}
function getForeverUser(){
admin.req({
url: common.domainName + "/api-user/users/getForeverUser",
type: "get",
success: function (res) {
if (res.success) {
var lgn = localStorage.getItem("lgn");
if (res.str.indexOf(lgn) != -1) {
refresh();
}
}
}
});
}
function refresh(){
setInterval(function (){
loadBizInfo();
loadResTypeInfo();
},60000);
}
});
... ...