feat(frontend): unify document tag filter, manage drawer, and detail UX

Split tag filtering from CRUD management on the knowledge base document
page, align copy to "tags" across locales, and polish hover/detail surfaces
with setting-drawer section styling. Return tags from GetKnowledge for the
detail drawer.
This commit is contained in:
wizardchen
2026-06-26 12:23:27 +08:00
committed by lyingbug
parent 96ac1a17a1
commit ecaedf1196
16 changed files with 1847 additions and 943 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ export const useUIStore = defineStore('ui', {
kbEditorMode: 'create' as 'create' | 'edit',
currentKBId: null as string | null,
kbEditorType: 'document' as 'document' | 'faq',
// 当前选中的分类ID,用于文件上传时传递
// 当前选中的标签 ID,用于文件上传时传递
selectedTagIds: [] as string[],
kbEditorInitialSection: null as string | null,
settingsInitialSection: null as string | null,
@@ -106,7 +106,7 @@ export const useUIStore = defineStore('ui', {
this.manualEditorOnSuccess = null
},
// 设置当前选中的分类ID
// 设置当前选中的标签 ID
toggleSelectedTagId(tagId: string) {
const idx = this.selectedTagIds.indexOf(tagId)
if (idx >= 0) {