From 8866e865f72cf165eddc89c72b17de3f8ba02d37 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Fri, 10 Apr 2026 11:37:20 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=BC=E9=9F=B3=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E3=80=81=E8=BE=93=E5=85=A5=E6=B3=95enter?= =?UTF-8?q?=E3=80=81=E7=A8=80=E9=87=8A=E9=BB=98=E8=AE=A4=E5=80=BC=E3=80=81?= =?UTF-8?q?=E5=AE=B9=E9=87=8F=E5=A1=AB=E6=BB=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 拼音搜索改为前缀匹配(s→生姜,不再匹配茶树) - 精油编辑enter区分输入法组合键 - 新增配方默认30ml+1:6稀释,编辑时自动识别当前比例 - 非单次容量滴数四舍五入为整数 - 容量按钮等宽填满一行 - 搜索时自动展开折叠的配方列表 - 配方编辑器加新增标签功能 Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/composables/usePinyinMatch.js | 2 +- frontend/src/views/OilReference.vue | 2 +- frontend/src/views/RecipeManager.vue | 37 ++++++++++++++++++---- 3 files changed, 32 insertions(+), 9 deletions(-) diff --git a/frontend/src/composables/usePinyinMatch.js b/frontend/src/composables/usePinyinMatch.js index 47183d9..1b22404 100644 --- a/frontend/src/composables/usePinyinMatch.js +++ b/frontend/src/composables/usePinyinMatch.js @@ -69,5 +69,5 @@ export function matchesPinyinInitials(name, query) { const initials = getPinyinInitials(name) if (!initials) return false const q = query.toLowerCase() - return initials.includes(q) + return initials.startsWith(q) } diff --git a/frontend/src/views/OilReference.vue b/frontend/src/views/OilReference.vue index 05d1e17..e58b170 100644 --- a/frontend/src/views/OilReference.vue +++ b/frontend/src/views/OilReference.vue @@ -260,7 +260,7 @@ -