1
0
forked from dyf/dyf-vue-ui

大屏数据实时

This commit is contained in:
fengerli
2025-09-30 10:59:31 +08:00
parent af45e3fda3
commit e7e58d28cc
7 changed files with 616 additions and 357 deletions

View File

@ -105,6 +105,7 @@ const timer = setInterval(() => {
// 组件卸载时清除定时器
onUnmounted(() => {
clearInterval(timer);
clearInterval(timerAlarm);
});
// 格式化时间
@ -119,6 +120,11 @@ const getData = async () => {
alarmOverview.value = res.data
}
}
const timerAlarm = setInterval(() => {
getData();
}, 300000);
getData()
onMounted(() => {