feat: 新增全局请求定时功能

This commit is contained in:
奔跑的面条
2022-12-15 20:53:28 +08:00
parent 6c24321a36
commit 6de7c26b6e
4 changed files with 28 additions and 8 deletions
@@ -47,7 +47,7 @@ import { getSizeStyle, getComponentAttrStyle, getStatusStyle } from '../../utils
import { useLifeHandler } from '@/hooks'
// 初始化数据池
const { initDataPond } = useChartDataPondFetch()
const { initDataPond, clearMittDataPondMap } = useChartDataPondFetch()
const props = defineProps({
localStorageInfo: {
@@ -69,6 +69,7 @@ const themeColor = computed(() => {
})
// 组件渲染结束初始化数据池
clearMittDataPondMap()
onMounted(() => {
initDataPond(props.localStorageInfo.requestGlobalConfig)
})