Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
c509da14a8ca3ba4f564208e9eea1097aa81ab05
1 parent
afcf4ae1
首页-【无】-长期登录账户自动刷新
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
View file @
c509da1
...
...
@@ -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
);
}
});
...
...
Please
register
or
login
to post a comment