diff --git a/src/components/LiquidHandle.vue b/src/components/LiquidHandle.vue index 1f2219a..da7ce32 100644 --- a/src/components/LiquidHandle.vue +++ b/src/components/LiquidHandle.vue @@ -215,6 +215,11 @@ const formatter = value => { } const startAdd = () => { + let value = parseInt(addLiquidVal.value); + if ( 0 === value || value > 2300 ) { + console.warn(`加液量不合法 : ${value}`); + return; + } if (!(operatorStore.replenishingFluidsWorkState == 1)) { webSocketStore.sendCommandMsg( startReplenishingFluidsJSON(parseInt(addLiquidVal.value)),