Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
aec0a97c
Commit
aec0a97c
authored
Apr 16, 2018
by
Junling Bu
Browse files
fix[litemall-admin]: 当系统内部错误,管理后台前端显示合适的提醒信息。
parent
50e52f4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/utils/request.js
View file @
aec0a97c
...
...
@@ -26,7 +26,13 @@ service.interceptors.request.use(config => {
service
.
interceptors
.
response
.
use
(
response
=>
{
const
res
=
response
.
data
if
(
res
.
errno
!==
0
)
{
if
(
res
.
errno
===
502
)
{
MessageBox
.
alert
(
'
系统内部错误,请联系管理员维护
'
,
'
错误
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
})
return
Promise
.
reject
(
'
error
'
)
}
else
if
(
res
.
errno
!==
0
)
{
MessageBox
.
alert
(
'
超时自动退出系统,请重新登录
'
,
'
已退出
'
,
{
confirmButtonText
:
'
重新登录
'
,
type
:
'
error
'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment