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([])