feat 优化报警消息与列表联通, 报警消息与数字同步, 报警数字与列表同步刷新, 报警列表与消息列表同步刷新
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user