diff --git a/src/router/axios.js b/src/router/axios.js index 9743413..47ff382 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -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' }) }