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