From 0305a6787c285460f6617d63e80a586951f1685d Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 14 May 2025 21:28:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=88=A4=E6=96=AD;=E8=87=AA=E6=A3=80=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.pre | 6 +-- src/components/check/index.vue | 39 ++++++++-------- src/components/home/AddLiquid/index.vue | 72 +++++++++++++++++++++++++---- src/components/home/Tube/index.vue | 25 ++--------- src/layouts/default.vue | 19 ++------ src/libs/utils.ts | 6 +++ src/stores/systemStore.ts | 2 +- src/views/home/index.vue | 80 ++++++++++++++++++--------------- 8 files changed, 143 insertions(+), 106 deletions(-) diff --git a/.env.pre b/.env.pre index c9a9f19..a59f795 100644 --- a/.env.pre +++ b/.env.pre @@ -2,6 +2,6 @@ FT_NODE_ENV=pre -FT_WS_URL=ws://127.0.0.1:8080/ws -FT_PROXY=http://192.168.1.140 -FT_API_BASE=/api \ No newline at end of file +FT_WS_URL=ws://192.168.8.108:8080/ws +FT_PROXY=http://192.168.8.108 +FT_API_BASE=http://192.168.8.108:8080/api \ No newline at end of file diff --git a/src/components/check/index.vue b/src/components/check/index.vue index b8e8985..55f54ee 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -15,7 +15,7 @@ const props = defineProps({ checking: Boolean, type: String, }) -const emits = defineEmits(['update:checking']) +defineEmits(['update:checking']) const homeStore = useHomeStore() const visible = ref(props.checking) const chemicalList = ref([]) @@ -187,10 +187,8 @@ const gantry_origin = async (motor: 'x' | 'y' | 'z') => { const params = { commandId: currentCommandId, - command: 'gantry_origin', - params: { - [motor]: true, - }, + command: `gantry_${motor}_origin`, + params: {}, } await homeStore.sendControl(params) } @@ -236,18 +234,18 @@ const onComplete = () => { }) } -const cancel = () => { - emits('update:checking', false) - visible.value = false -} +// const cancel = () => { +// emits('update:checking', false) +// visible.value = false +// }