From a41a4f126688949cacb743011cf073bedc79419a Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Fri, 10 Nov 2023 09:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/info/AirSwitchConfig.vue | 9 ++++++++- src/mock/command.js | 11 +++++++++++ src/store/modules/seal.js | 9 +++++++++ src/store/modules/websocket.js | 4 ++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/components/info/AirSwitchConfig.vue b/src/components/info/AirSwitchConfig.vue index 9116700..dd56338 100644 --- a/src/components/info/AirSwitchConfig.vue +++ b/src/components/info/AirSwitchConfig.vue @@ -70,8 +70,10 @@ import { useSealStore, useWebSocketStore } from '@/store' import { AirInletProportionalValve_setStateJSON, AirOutletProportionalValve_setStateJSON, + airInletProportionalValve_getStateJSON, + AirOutletProportionalValve_getStateJSON, } from '@/mock/command' -import { ref } from 'vue' +import { ref, onMounted } from 'vue' const activeTab = ref('1') const sealStore = useSealStore() @@ -113,6 +115,11 @@ const columns = ref([ const selectedValuesTop = ref(['0']) const selectedValuesBottom = ref(['0']) + +onMounted(() => { + webSocketStore.sendCommandMsg(airInletProportionalValve_getStateJSON) + webSocketStore.sendCommandMsg(AirOutletProportionalValve_getStateJSON) +})