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,