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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user