From 02462b077f770855e0ee7671c1896c4dec23e2a0 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Mon, 7 Jul 2025 18:21:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E6=B6=88=E6=AF=92?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/HomeOperation.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 () => { -
+
强制停止喷液: 1