mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 优化交互组件
This commit is contained in:
@@ -90,12 +90,17 @@ export const useChartDataFetch = (
|
||||
// 立即调用
|
||||
fetchFn()
|
||||
|
||||
// 组件交互处理监听
|
||||
watch(
|
||||
() => targetComponent.request,
|
||||
() => {
|
||||
fetchFn()
|
||||
},
|
||||
{
|
||||
deep: true
|
||||
}
|
||||
)
|
||||
|
||||
watch(() => targetComponent.request, () => {
|
||||
fetchFn()
|
||||
}, {
|
||||
deep: true
|
||||
})
|
||||
// 定时时间
|
||||
const time = targetInterval && targetInterval.value ? targetInterval.value : globalRequestInterval.value
|
||||
// 单位
|
||||
|
||||
Reference in New Issue
Block a user