diff --git a/.env b/.env index fe3f0dd..c4ae906 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ -VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ -VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ +# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ +# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ -# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ -# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file +VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/src/components/info/AirSwitchConfig.vue b/src/components/info/AirSwitchConfig.vue index 4fe9e9d..4d182e0 100644 --- a/src/components/info/AirSwitchConfig.vue +++ b/src/components/info/AirSwitchConfig.vue @@ -117,10 +117,15 @@ const selectedValuesTop = ref(['0']) const selectedValuesBottom = ref(['0']) onMounted(() => { - setTimeout(() => { + try { webSocketStore.sendCommandMsg(airInletProportionalValve_getStateJSON) webSocketStore.sendCommandMsg(AirOutletProportionalValve_getStateJSON) - }, 1000) + } catch (error) { + setTimeout(() => { + webSocketStore.sendCommandMsg(airInletProportionalValve_getStateJSON) + webSocketStore.sendCommandMsg(AirOutletProportionalValve_getStateJSON) + }, 1000) + } }) watch(