Forráskód Böngészése

response error里,加上loading消失

刘洋 1 éve
szülő
commit
ba1ded56dd
1 módosított fájl, 3 hozzáadás és 0 törlés
  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: