From ed536503910ebd33b2776ab8f59878e6cec9b708 Mon Sep 17 00:00:00 2001 From: sige Date: Thu, 29 Feb 2024 15:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E6=A0=B7=E6=9C=AC=E5=88=B0?= =?UTF-8?q?=E8=A7=82=E5=AF=9F=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue b/src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue index 7fa8506..6c4a186 100644 --- a/src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue +++ b/src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue @@ -9,13 +9,17 @@ import ApiClient from '@/utils/ApiClient'; import Common from '@/utils/Common'; import { Modal } from 'ant-design-vue'; +import { useAppStore } from '@/stores/AppStore'; /** @var {Object} */ const props = defineProps({ activeSlot: Object, }); +/** @var {AppStore} */ +const appStore = useAppStore(); // 移至观察区 async function actionMoveToLiquidPlate() { + appStore.setCameraEnable(true); let client = ApiClient.getClient(); let task = await client.taskAppend('SampleMoveToLiquidPlate',{ slotIndex : props.activeSlot.index * 1, @@ -28,6 +32,7 @@ async function actionMoveToLiquidPlate() { Modal.error({title: '失败', content: task.message}); break ; } else if ( 'FINISHED' === task.status ) { + appStore.setCameraEnable(true); break ; } await Common.delay(1000);