From 18a74df08368e5183bf29d1139c70c28e608e0cf Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Tue, 14 Apr 2026 17:47:35 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E5=8D=95=E4=BD=8D=20=E2=80=94=20?= =?UTF-8?q?=E9=85=8D=E6=96=B9=E5=88=86=E4=BA=AB=E6=96=87=E6=9C=AC=E5=92=8C?= =?UTF-8?q?=E5=95=86=E4=B8=9A=E6=A0=B8=E7=AE=97=E6=B6=88=E8=80=97=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - RecipeDetailOverlay: 分享文本 ing.drops滴 → unitLabel - Projects: 消耗分析 每滴→单价, drops滴→unitLabel Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/RecipeDetailOverlay.vue | 2 +- frontend/src/views/Projects.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 50bba81..88a9b76 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -483,7 +483,7 @@ function copyText() { const ings = cardIngredients.value const lines = ings.map(ing => { const cost = oilsStore.pricePerDrop(ing.oil) * ing.drops - return `${ing.oil} ${ing.drops}滴 ${oilsStore.fmtPrice(cost)}` + return `${ing.oil} ${ing.drops}${oilsStore.unitLabel(ing.oil)} ${oilsStore.fmtPrice(cost)}` }) const total = priceInfo.value.cost const text = [ diff --git a/frontend/src/views/Projects.vue b/frontend/src/views/Projects.vue index 1c11546..b773ee2 100644 --- a/frontend/src/views/Projects.vue +++ b/frontend/src/views/Projects.vue @@ -81,7 +81,7 @@ 精油 用量 - 每滴 + 单价 小计 @@ -133,8 +133,8 @@ {{ c.oil }} - {{ c.drops }}滴 - {{ c.bottleDrops }}滴 + {{ c.drops }}{{ oils.unitLabel(c.oil) }} + {{ c.bottleDrops }}{{ oils.unitLabel(c.oil) }} {{ c.sessions }}次