Parcourir la source

perf: 打印错误ri'zrizhi

奔跑的面条 il y a 3 ans
Parent
commit
ce9d59896c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/hooks/useChartDataFetch.hook.ts

+ 3 - 1
src/hooks/useChartDataFetch.hook.ts

@@ -89,7 +89,9 @@ export const useChartDataFetch = (
         if (time) fetchInterval = setInterval(fetchFn, intervalUnitHandle(time, unit))
       }
       // eslint-disable-next-line no-empty
-    } catch (error) {}
+    } catch (error) {
+      console.log(error);
+    }
   }
 
   isPreview() && requestIntervalFn()