feat 优化报警消息与列表联通, 报警消息与数字同步, 报警数字与列表同步刷新, 报警列表与消息列表同步刷新

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-06-11 10:32:13 +08:00
parent 2492b8ff5a
commit 55f0cd2192
3 changed files with 15 additions and 4 deletions

View File

@@ -215,8 +215,14 @@ const handleCommand = (command: string) => {
//用深度监听 消息
watch(
() => noticeStore.state.value.notices,
(newVal) => {
async (newVal) => {
newNotice.value = newVal.filter((item: any) => !item.read).length;
//监听到消息变化,刷新告警列表
await warningListStore.getWarningList({
status: 0,
pageNum: 1,
pageSize: 300
});
},
{ deep: true }
);