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> @@ -117,6 +117,8 @@ gap: 6px; font-size: 15px; color: #d0e7ff; white-space: nowrap; flex-wrap: nowrap; } .card-compare>span:first-child {