Преглед изворни кода

服务器限流:学生端提示

Michael Wang пре 6 година
родитељ
комит
71486c7ea8
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      src/utils/axios.js

+ 7 - 0
src/utils/axios.js

@@ -89,6 +89,13 @@ qmInstance.interceptors.response.use(
         closable: true,
       });
       return;
+    } else if (status == 503) {
+      Message.error({
+        content: "服务器繁忙(503)!请稍后重试。",
+        duration: 15,
+        closable: true,
+      });
+      return;
     } else if (status != 200) {
       if (
         wk_token &&