diff --git a/src/router/axios.js b/src/router/axios.js index d8ecc09..9743413 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -64,7 +64,7 @@ axios.interceptors.response.use(res => { const status = Number(res.status) || 200 const message = res.data.msg || errorCode[status] || errorCode['default'] - if (status === 401) { + if (status === 401 || status === 500) { idx++ if(idx==1){ Message({