feat(ui): enhance knowledge base creation with initial section support

- Updated the openCreateKB method to accept an optional initialSection parameter, allowing for targeted navigation during knowledge base creation.
- Removed the TenantModelsGuide component from KnowledgeBaseList.vue to streamline the UI.
- Adjusted logic in handleCreateKnowledgeBase to conditionally set the initial section based on model readiness, improving user experience.
This commit is contained in:
wizardchen
2026-06-10 19:42:24 +08:00
committed by lyingbug
parent ba492aa9f5
commit bb220db4e4
2 changed files with 7 additions and 15 deletions
+2 -2
View File
@@ -52,11 +52,11 @@ export const useUIStore = defineStore('ui', {
this.openKBSettings(kbId, initialSection)
},
openCreateKB(type: 'document' | 'faq' = 'document') {
openCreateKB(type: 'document' | 'faq' = 'document', initialSection?: string) {
this.currentKBId = null
this.kbEditorMode = 'create'
this.kbEditorType = type
this.kbEditorInitialSection = null
this.kbEditorInitialSection = initialSection || null
this.showKBEditorModal = true
},