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