Commit aec0a97c authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin]: 当系统内部错误,管理后台前端显示合适的提醒信息。

parent 50e52f4c
......@@ -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'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment