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
wangtao
3 years ago
Commit
e74a332a3da7237e7b82621329277baf1da605a2
1 parent
b4ad6fa9
检查登录状态
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
hg-monitor-web-base/src/main/resources/static/src/index.js
hg-monitor-web-base/src/main/resources/static/src/index.js
View file @
e74a332
...
...
@@ -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
();
...
...
Please
register
or
login
to post a comment