feat 弹窗优化, 更换标的
This commit is contained in:
@@ -5,6 +5,10 @@
|
|||||||
"ComputedRef": true,
|
"ComputedRef": true,
|
||||||
"DirectiveBinding": true,
|
"DirectiveBinding": true,
|
||||||
"EffectScope": true,
|
"EffectScope": true,
|
||||||
|
"ElLoading": true,
|
||||||
|
"ElMessage": true,
|
||||||
|
"ElMessageBox": true,
|
||||||
|
"ElNotification": true,
|
||||||
"ExtractDefaultPropTypes": true,
|
"ExtractDefaultPropTypes": true,
|
||||||
"ExtractPropTypes": true,
|
"ExtractPropTypes": true,
|
||||||
"ExtractPublicPropTypes": true,
|
"ExtractPublicPropTypes": true,
|
||||||
|
|||||||
@@ -271,15 +271,19 @@ watch(
|
|||||||
{ deep: true }
|
{ deep: true }
|
||||||
);
|
);
|
||||||
// 告警数据变化时自动弹出弹窗
|
// 告警数据变化时自动弹出弹窗
|
||||||
|
// 当 isNotice 变为 true 时弹出弹窗,并重置为 false
|
||||||
let noticeFirstLoad = true; //解决初始化时弹出弹窗问题
|
let noticeFirstLoad = true; //解决初始化时弹出弹窗问题
|
||||||
watch(
|
watch(
|
||||||
() => warningListStore.warningListTotal,
|
() => noticeStore.state.value.isNotice,
|
||||||
() => {
|
(newVal) => {
|
||||||
if (noticeFirstLoad) {
|
if (noticeFirstLoad) {
|
||||||
noticeFirstLoad = false;
|
noticeFirstLoad = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (newVal) {
|
||||||
|
noticeStore.state.value.isNotice = false;
|
||||||
popoverVisible.value = true;
|
popoverVisible.value = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user