From 9e15e1beedf6de5151083f5fdbd25375b509c57a Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Fri, 10 Apr 2026 20:15:12 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B1=E4=BA=AB=E5=8E=BB=E9=87=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=85=B7=E4=BD=93=E5=B7=AE=E5=BC=82=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= 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, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 32a6124..16beca7 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -1285,9 +1285,11 @@ async function shareDiaryToPublic(diary) { ui.showToast('公共配方库中已有一模一样的配方「' + diary.name + '」') return } - // Same name, different content + // Same name, different content — show details + const existIngs = pIngs.map(i => `${i.oil}${i.drops}滴`).join('、') + const newIngs = dIngs.map(i => `${i.oil}${i.drops}滴`).join('、') const action = await showConfirm( - `公共配方库中已有同名配方「${diary.name}」但内容不同,是否改名后共享?`, + `公共配方库中已有同名配方「${diary.name}」,内容不同:\n\n已有:${existIngs}\n新的:${newIngs}\n\n是否改名后共享?`, { okText: '改名', cancelText: '取消' } ) if (!action) return