diff --git a/src/components/Test.vue b/src/components/Test.vue index 7943cf2..547d024 100644 --- a/src/components/Test.vue +++ b/src/components/Test.vue @@ -227,20 +227,24 @@ { return value } +const isFirstClick = ref(true) const hideAllKeyboards = flag => { + isFirstClick.value = true if (flag == 1) { numberKeyboardShowVal.value = true numberKeyboardShowPower.value = false @@ -342,6 +348,32 @@ const hideAllKeyboards = flag => { } } +const handleInput = (value, index) => { + if (isFirstClick.value) { + if (index == 1) { + setTimeout(() => { + addLiquidVal.value = value + '' + }) + } + if (index == 2) { + setTimeout(() => { + addLiquidPower.value = value + '' + }) + } + if (index == 3) { + setTimeout(() => { + addLiquidVal2.value = value + '' + }) + } + if (index == 4) { + setTimeout(() => { + addLiquidPower2.value = value + '' + }) + } + isFirstClick.value = false + } +} + const setAddLiquidConfig = flag => { if (flag == 1) { websocketStore.sendCommandMsg(