zhuliu 1 năm trước cách đây
mục cha
commit
59eff98e2b
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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 = []
+    }
+}