lilei пре 5 година
родитељ
комит
cf0be5b8b7
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: '提示',