增加忽略结束时间提示

This commit is contained in:
2025-11-18 13:44:01 +08:00
parent b362b08e6f
commit 1169381f7a
2 changed files with 12 additions and 3 deletions

View File

@@ -397,6 +397,7 @@ export default {
onMounted(() => {
window.addEventListener('storage', handleStorageChange);
window.addEventListener('alarm-updated', fetchUnresolvedAlarmCount);
// 首次加载时获取告警数量
fetchUnresolvedAlarmCount();
// 每60秒刷新一次告警数量
@@ -405,6 +406,7 @@ export default {
onUnmounted(() => {
window.removeEventListener('storage', handleStorageChange);
window.removeEventListener('alarm-updated', fetchUnresolvedAlarmCount);
// 清除定时器
if (alarmFetchInterval) {
clearInterval(alarmFetchInterval);