feat: 优化交互组件

This commit is contained in:
奔跑的面条
2023-03-11 16:58:32 +08:00
parent 3f3f54f3b7
commit 05bb2a5eb6
32 changed files with 392 additions and 302 deletions
+10 -5
View File
@@ -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
// 单位