소스 검색

response error里,加上loading消失

刘洋 1 년 전
부모
커밋
ba1ded56dd
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/utils/request.js

+ 3 - 0
src/utils/request.js

@@ -45,6 +45,9 @@ function createService() {
       return response.data;
     },
     (error) => {
+      if (error.config.loading) {
+        LoadingPlugin(false);
+      }
       const err = (text) => {
         Message.error({
           content: