Explorar el Código

fix 502/503 error

Michael Wang hace 5 años
padre
commit
b6c6299253
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/utils/axios.js

+ 2 - 2
src/utils/axios.js

@@ -124,7 +124,7 @@ qmInstance.interceptors.response.use(
         duration: 15,
         closable: true,
       });
-      return;
+      return Promise.reject(error);
     } else if (status == 503) {
       const deal503Apis = [
         "/api/ecs_oe_student/examControl/checkExamInProgress",
@@ -144,7 +144,7 @@ qmInstance.interceptors.response.use(
         duration: 15,
         closable: true,
       });
-      return;
+      return Promise.reject(error);
     } else if (status != 200) {
       window._hmt.push([
         "_trackEvent",