소스 검색

500 提示

lilei 4 년 전
부모
커밋
3868d7bccb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -63,7 +63,7 @@ service.interceptors.response.use((response) => {
       }
     })
   }
-  if ((response.data.status == '401' || response.data.status == '900') && window.location.pathname != '/user/login') {
+  if ((response.data.status == '401' || response.data.status == '900' || response.data.status == '500') && window.location.pathname != '/user/login') {
     notification.destroy()
     notification.error({
       message: '提示',