增加忽略结束时间提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user