diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d3e9443..c5a9506 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -272,14 +272,14 @@ watch( ); // 告警数据变化时自动弹出弹窗 // 当 isNotice 变为 true 时弹出弹窗,并重置为 false -let noticeFirstLoad = true; //解决初始化时弹出弹窗问题 +// let noticeFirstLoad = true; //解决初始化时弹出弹窗问题 watch( () => noticeStore.state.value.isNotice, (newVal) => { - if (noticeFirstLoad) { - noticeFirstLoad = false; - return; - } + // if (noticeFirstLoad) { + // noticeFirstLoad = false; + // return; + // } if (newVal) { noticeStore.state.value.isNotice = false; popoverVisible.value = true;