gongchunyi
5 天以前 f0c8e8aaf9f41a7ab0f02a23cd7c5de1bffb9e71
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>