src/views/reportAnalysis/qualityAnalysis/components/center-center.vue
@@ -25,9 +25,10 @@ </template> <script setup> import { computed, getCurrentInstance, ref, onMounted } from 'vue' import { computed, getCurrentInstance, ref } from 'vue' import Echarts from '@/components/Echarts/echarts.vue' import { nonComplianceWarning } from '@/api/viewIndex.js' import { usePolling } from '@/hooks/usePolling.js' const { proxy } = getCurrentInstance() || {} @@ -161,9 +162,8 @@ // 先按截图做静态“近7天”,后续有真实筛选需求再接入 } onMounted(() => { fetchWarnings() }) // 启动轮询,每分钟刷新一次数据 usePolling(fetchWarnings) </script> <style scoped>