zhuliu hace 1 año
padre
commit
59eff98e2b
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      src/utils/clearHttpRequest.js

+ 10 - 0
src/utils/clearHttpRequest.js

@@ -0,0 +1,10 @@
+export let httpRequestList = []
+
+export const clearHttpRequestingList = () =>{
+    if(httpRequestList.length>0){
+        httpRequestList.forEach(item=>{
+            item('interrupt')
+        })
+        httpRequestList = []
+    }
+}