From 9c3b9218d238cc52fac633370e503a017af2f7bb Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Tue, 5 Mar 2024 17:00:30 +0800 Subject: [PATCH] 1 --- src/AlertListScreen.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AlertListScreen.vue b/src/AlertListScreen.vue index 809cc8b..0a2da25 100644 --- a/src/AlertListScreen.vue +++ b/src/AlertListScreen.vue @@ -7,6 +7,7 @@ import DatetimeTool from "./components/HeadTime.vue"; import AppHeader from "./components/Base/Header.vue"; import Tools from "./components/Tools.vue"; import FullEqList from "./FullEqList.vue"; +import { connect0 } from "./utils/useWebsocket"; const mainContainer = ref(null); const props = defineProps({ @@ -16,6 +17,9 @@ const props = defineProps({ }, }); const store = useWsStore(); + +connect0(store); + const alarmList = ref( (store.data1.alarmArrList || []).map((item, index) => ({ id: item.id,