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
王涛
3 years ago
Commit
4af793f1b2bcfc2cf8a741ebc31f446c85a936b0
1 parent
f902d382
前端页面屏蔽错误提示
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
hg-monitor-web-base/src/main/resources/static/src/lib/view.js
hg-monitor-web-base/src/main/resources/static/src/lib/view.js
View file @
4af793f
...
...
@@ -144,19 +144,21 @@ layui.define(['laytpl', 'layer'], function(exports){
});
}
}
else
if
(
e
.
status
==
'500'
){
layer
.
msg
(
"服务异常,请联系管理员!</br>错误信息:"
+
e
.
responseJSON
[
"resp_msg"
],
{
icon
:
7
,
time
:
5000
});
// layer.msg("服务异常,请联系管理员!</br>错误信息:"+e.responseJSON["resp_msg"], {
// icon: 7, time: 5000
// });
console
.
error
(
"服务异常,请联系管理员"
,
e
);
}
else
if
(
e
.
status
==
'403'
){
layer
.
msg
(
"无权限访问,请联系管理员!"
,
{
icon
:
7
,
time
:
5000
});
}
else
{
var
errorMsg
=
[
'请求异常,请重试<br><cite>错误信息:</cite>'
+
code
,
debug
()
].
join
(
''
);
view
.
error
(
errorMsg
);
// var errorMsg = [
// '请求异常,请重试<br><cite>错误信息:</cite>' + code
// , debug()
// ].join('');
// view.error(errorMsg);
console
.
error
(
"'请求异常,请重试"
,
e
);
}
typeof
error
===
'function'
&&
error
(
e
,
code
);
}
...
...
Please
register
or
login
to post a comment