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