src/views/reportAnalysis/qualityAnalysis/components/right-bottom.vue
@@ -17,6 +17,7 @@ import PanelHeader from './PanelHeader.vue' import { unqualifiedProductProcessingAnalysis } from '@/api/viewIndex.js' import { useChartBackground } from '@/hooks/useChartBackground.js' import { usePolling } from '@/hooks/usePolling.js' const pieWrapperRef = ref(null) const pieBackgroundRef = ref(null) @@ -149,13 +150,15 @@ } onMounted(() => { loadData() initBackground() }) onBeforeUnmount(() => { cleanupBackground() }) // 启动轮询,每分钟刷新一次数据 usePolling(loadData) </script> <style scoped>