From d54f807e6001e7313e12eb5beef62d11aff82c86 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Mon, 13 Apr 2026 18:21:01 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E5=88=B0=E5=8D=95?= =?UTF-8?q?=E6=AC=A1=E6=A8=A1=E5=BC=8F=E6=97=B6=E8=87=AA=E5=8A=A8=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=A4=B0=E5=AD=90=E6=B2=B9=E6=BB=B4=E6=95=B0=EF=BC=88?= =?UTF-8?q?>30=E6=BB=B4=E2=86=9210=E6=BB=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/RecipeManager.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 1bf4969..65f9205 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -456,10 +456,14 @@ const formDilution = ref(6) const formCocoRow = ref(null) -watch(() => formVolume.value, (vol) => { +watch(() => formVolume.value, (vol, oldVol) => { if (vol && !formCocoRow.value && parsedCurrentIndex.value < 0) { formCocoRow.value = { oil: '椰子油', drops: vol === 'single' ? 10 : 0, _search: '椰子油', _open: false } } + // Switching to single: reset coconut drops if they're too large (leftover from fill mode) + if (vol === 'single' && formCocoRow.value && formCocoRow.value.drops > 30) { + formCocoRow.value.drops = 10 + } }) // EO ingredients (everything except coconut)