mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-23 15:52:49 +08:00
fix: 处理初始化会请求两次的问题
This commit is contained in:
parent
943cabf5cd
commit
e2d93053ba
@ -107,8 +107,6 @@ export const useChartDataFetch = (
|
||||
// 开启轮询
|
||||
if (time) {
|
||||
fetchInterval = setInterval(fetchFn, intervalUnitHandle(time, unit))
|
||||
} else {
|
||||
fetchFn()
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line no-empty
|
||||
|
Loading…
Reference in New Issue
Block a user