diff --git a/src/components/home/HomeOperation.vue b/src/components/home/HomeOperation.vue index aa213c2..a36dbe8 100644 --- a/src/components/home/HomeOperation.vue +++ b/src/components/home/HomeOperation.vue @@ -130,8 +130,15 @@ const doStopDisinfect = async () => { params: { loglevel: formulaStore.loglevel }, } await sendCmd(stopParams) + const poll = setInterval(() => { + if (operationState.value) { + systemStore.updateLoading(false) + clearInterval(poll) + } + }, 100) } - finally { + catch (e) { + console.log(e) systemStore.updateLoading(false) } } @@ -201,7 +208,10 @@ const stopInjection = async () => { -