From 5049a1d91688a657c2d92eea8cf4520fe7457ba3 Mon Sep 17 00:00:00 2001 From: sige Date: Thu, 23 May 2024 23:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=8A=A0=E6=B6=B2=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA0=E6=97=B6=EF=BC=8C=E4=BB=8D=E7=84=B6=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=AD=A3=E5=B8=B8=E6=89=A7=E8=A1=8C=E5=8A=A0=E6=B6=B2?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LiquidHandle.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/LiquidHandle.vue b/src/components/LiquidHandle.vue index e1af4b9..46180ad 100644 --- a/src/components/LiquidHandle.vue +++ b/src/components/LiquidHandle.vue @@ -214,6 +214,11 @@ const formatter = value => { } const startAdd = () => { + let value = parseInt(addLiquidVal.value); + if ( 0 === value || value > 5000 ) { + console.warn(`加液量不合法 : ${value}`); + return; + } if (!(operatorStore.replenishingFluidsWorkState == 1)) { webSocketStore.sendCommandMsg( startReplenishingFluidsJSON(parseInt(addLiquidVal.value)),