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