src/views/reportAnalysis/qualityAnalysis/components/center-top.vue
@@ -20,8 +20,9 @@ </template> <script setup> import { ref, onMounted } from 'vue' import { ref } from 'vue' import { qualityInspectionCount } from '@/api/viewIndex.js' import { usePolling } from '@/hooks/usePolling.js' const statItems = ref([]) @@ -62,9 +63,8 @@ }) } onMounted(() => { fetchData() }) // 启动轮询,每分钟刷新一次数据 usePolling(fetchData) </script> <style scoped>