fix: 处理初始化会请求两次的问题

This commit is contained in:
奔跑的面条 2024-04-10 15:24:10 +08:00
parent 943cabf5cd
commit e2d93053ba

View File

@ -107,8 +107,6 @@ export const useChartDataFetch = (
// 开启轮询
if (time) {
fetchInterval = setInterval(fetchFn, intervalUnitHandle(time, unit))
} else {
fetchFn()
}
}
// eslint-disable-next-line no-empty