feat: 控件与组件交互

This commit is contained in:
Min
2023-03-08 15:10:33 +08:00
committed by 奔跑的面条
parent 3d6a3908ac
commit bd2a150a57
5 changed files with 195 additions and 2 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
import { ref, toRefs, toRaw } from 'vue'
import { ref, toRefs, toRaw, watch } from 'vue'
import type VChart from 'vue-echarts'
import { customizeHttp } from '@/api/http'
import { useChartDataPondFetch } from '@/hooks/'
@@ -89,6 +89,13 @@ export const useChartDataFetch = (
// 立即调用
fetchFn()
watch(() => targetComponent.request, () => {
fetchFn()
}, {
deep: true
})
// 定时时间
const time = targetInterval && targetInterval.value ? targetInterval.value : globalRequestInterval.value
// 单位