Browse Source

无返回数据loading也关闭

zhouna 6 năm trước cách đây
mục cha
commit
250d2ba147
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/store/async-actions/fetchModules.js

+ 1 - 0
src/store/async-actions/fetchModules.js

@@ -173,6 +173,7 @@ export function pregetCheckbodyData(flag){     //flag=true获取到数据后立
           dispatch({type:MODI_LOADING,flag:false});
         }
       }else{
+        dispatch({type:MODI_LOADING,flag:false});
         Notify.error(res.data.msg);
       }
     });