From 54b6fb7906df6607d4d4b233a95f1b022142998a Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Fri, 10 Nov 2023 11:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=80=E9=97=A8=E6=95=B0=E5=80=BC*10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 ++++---- src/components/info/AirSwitchConfig.vue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env b/.env index c4ae906..fe3f0dd 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 4d182e0..5f3273c 100644 --- a/src/components/info/AirSwitchConfig.vue +++ b/src/components/info/AirSwitchConfig.vue @@ -87,14 +87,14 @@ const bottomText = ref('0%') const topChange = ({ selectedOptions, selectedValues }) => { topText.value = selectedOptions[0].text webSocketStore.sendCommandMsg( - AirInletProportionalValve_setStateJSON([parseInt(selectedValues[0])]), + AirInletProportionalValve_setStateJSON([parseInt(selectedValues[0] * 10)]), ) sealStore.updateAirInletProportionalValue(parseInt(selectedValues[0])) } const bottomChange = ({ selectedOptions, selectedValues }) => { bottomText.value = selectedOptions[0].text webSocketStore.sendCommandMsg( - AirOutletProportionalValve_setStateJSON([parseInt(selectedValues[0])]), + AirOutletProportionalValve_setStateJSON([parseInt(selectedValues[0] * 10)]), ) sealStore.updateAirOutletProportionalValue(parseInt(selectedValues[0])) }