feat 弹窗优化, 更换标的

This commit is contained in:
Ironsp
2026-06-23 08:28:35 +08:00
parent 00efe08873
commit dd54ce489e
2 changed files with 11 additions and 3 deletions

View File

@@ -5,6 +5,10 @@
"ComputedRef": true,
"DirectiveBinding": true,
"EffectScope": true,
"ElLoading": true,
"ElMessage": true,
"ElMessageBox": true,
"ElNotification": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,

View File

@@ -271,15 +271,19 @@ watch(
{ deep: true }
);
// 告警数据变化时自动弹出弹窗
// 当 isNotice 变为 true 时弹出弹窗,并重置为 false
let noticeFirstLoad = true; //解决初始化时弹出弹窗问题
watch(
() => warningListStore.warningListTotal,
() => {
() => noticeStore.state.value.isNotice,
(newVal) => {
if (noticeFirstLoad) {
noticeFirstLoad = false;
return;
}
popoverVisible.value = true;
if (newVal) {
noticeStore.state.value.isNotice = false;
popoverVisible.value = true;
}
},
{ deep: true }
);