From 42993d47eea3908717f76e5d19764ea665511ccb Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Mon, 13 Apr 2026 16:25:14 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E6=96=B9=E6=88=90=E5=88=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=92=8C=E5=AF=BC=E5=87=BA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=8D=95=E4=BD=8D=EF=BC=8C=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=94=B9=E4=B8=BA"=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E9=87=8F"?= 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, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 5808480..6f0b5f8 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -872,7 +872,7 @@ function selectOil(ing, name) { // Check for duplicate oil in current recipe const existing = formIngredients.value.find(i => i !== ing && i.oil === name) if (existing) { - ui.showToast(`已有「${name}」,请直接修改滴数`) + ui.showToast(`已有「${name}」,请直接修改用量`) ing._open = false return } @@ -1568,7 +1568,7 @@ function recipesIdentical(a, b) { } function formatIngsCompare(ings) { - return (ings || []).map(i => `${i.oil} ${i.drops}滴`).join('、') + return (ings || []).map(i => `${i.oil} ${i.drops}${oils.unitLabel(i.oil)}`).join('、') } async function approveRecipe(recipe) { @@ -1650,7 +1650,7 @@ async function exportExcel() { return list.map(r => ({ '配方名称': r.name, '标签': (r.tags || []).join('/'), - '精油成分': r.ingredients.map(i => `${i.oil}${i.drops}滴`).join('、'), + '精油成分': r.ingredients.map(i => `${i.oil}${i.drops}${oils.unitLabel(i.oil)}`).join('、'), '成本': oils.fmtPrice(oils.calcCost(r.ingredients)), '备注': r.note || '', }))