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)),