|
|
@@ -63,12 +63,11 @@ axios.interceptors.response.use(res => { |
|
|
|
NProgress.done() |
|
|
|
const status = Number(res.status) || 200 |
|
|
|
const message = res.data.msg || errorCode[status] || errorCode['default'] |
|
|
|
|
|
|
|
if (status === 401 || status === 500) { |
|
|
|
idx++ |
|
|
|
if(idx==1){ |
|
|
|
Message({ |
|
|
|
message: message, |
|
|
|
message: '当前登录状态异常,请重新登录~', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
} |
|
|
|