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 +// }