浏览代码

打回接口启用全屏loading,预防卡慢

刘洋 1 年之前
父节点
当前提交
e1f58946b2
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/hooks/useFetch.ts

+ 3 - 0
src/hooks/useFetch.ts

@@ -31,6 +31,9 @@ const needLoadingApiList: any[] = [
   '/api/statistic/marking/progress/ending',
   '/api/train/monitor/list',
   '/api/user/marker/paused',
+  '/api/custom/query/reject',
+  '/api/system/check/reject',
+  '/api/self/check/reject',
 ]
 function useFetch<K extends ApiKeys>(key: K): ReturnType<K>
 function useFetch<K extends ApiKeys>(key: K, config: AxiosRequestConfig, method?: HttpMethod): ReturnType<K>