From 1790ab3b449ff0bbb7980072e821ed350a22ddfa Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Mon, 13 Apr 2026 13:36:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20viewer=E5=8F=AA=E8=83=BD=E7=9C=8B?= =?UTF-8?q?=E5=88=B0=E5=92=8C=E7=AE=A1=E7=90=86=E8=87=AA=E5=B7=B1=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E9=85=8D=E6=96=B9=E7=9A=84=E6=A0=87=E7=AD=BE=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=85=AC=E5=85=B1=E5=BA=93=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= 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 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 3ca66d8..1d5b230 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -83,7 +83,7 @@
{ - const tags = recipeStore.allTags - if (auth.canEdit) return tags - return tags.filter(t => !EDITOR_ONLY_TAGS.includes(t)) + if (auth.canEdit) return recipeStore.allTags + // Viewer: only show tags from their own diary recipes + const myTags = new Set() + for (const d of diaryStore.userDiary) { + for (const t of (d.tags || [])) myTags.add(t) + } + return [...myTags].sort((a, b) => a.localeCompare(b, 'zh')) }) const showBatchTagPicker = ref(false) const batchTagsSelected = ref([])