diff --git a/src/components/home/HomeOperation.vue b/src/components/home/HomeOperation.vue index 9b7cbc2..aa213c2 100644 --- a/src/components/home/HomeOperation.vue +++ b/src/components/home/HomeOperation.vue @@ -3,6 +3,7 @@ import { sendCmd } from 'apis/system' import homeFinish from 'assets/images/home/home-finish.svg' import homeStart from 'assets/images/home/home-start.svg' import { startTimer, stopTimer } from 'libs/countdownTimer' +import { deviceStateMap } from 'libs/utils' import { computed, ref, watchEffect } from 'vue' import { getDeviceStatus } from '@/libs/deviceComm' @@ -147,7 +148,7 @@ const operationState = computed(() => { const startInjection = async () => { const stopParams = { className: 'DisinfectionCtrlServiceExt', - fnName: 'stop', + fnName: 'setHandleStopPumpInjectionFlag', params: {}, } await sendCmd(stopParams) @@ -157,7 +158,7 @@ const startInjection = async () => { const stopInjection = async () => { const stopParams = { className: 'DisinfectionCtrlServiceExt', - fnName: 'stop', + fnName: 'clearHandleStopPumpInjectionFlag', params: {}, } await sendCmd(stopParams) @@ -200,12 +201,17 @@ const stopInjection = async () => { -