diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index a510d2daf..6a7cbfa32 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -64,6 +64,7 @@ service.interceptors.response.use(res => { location.href = '/index'; }) }).catch(() => {}); + return Promise.reject('error') } else if (code === 500) { Message({ message: msg,