feat: Improve knowledge base loading and dropdown UI in manual knowledge editor

- Enhanced the knowledge base loading function with detailed logging for better debugging and visibility of the data flow.
- Filtered knowledge bases to include only document types, improving the relevance of displayed options.
- Updated the dropdown component to include a custom empty state message when no document-type knowledge bases are available.
- Adjusted z-index styles for dropdowns to ensure proper visibility in various UI contexts.
- Added localization strings for the new empty state message in English, Russian, and Chinese.
This commit is contained in:
wizardchen
2025-11-20 14:24:48 +08:00
parent aabc9faf74
commit 34d842cea8
5 changed files with 54 additions and 6 deletions
+1
View File
@@ -1488,6 +1488,7 @@ export default {
titlePlaceholder: 'Введите заголовок',
contentPlaceholder: 'Поддерживается Markdown. Используйте # заголовки, списки, блоки кода и т.д.'
},
noDocumentKnowledgeBases: 'Нет доступных баз знаний типа "документ". Пожалуйста, создайте одну сначала',
status: {
draftTag: 'Статус: Черновик',
publishedTag: 'Статус: Опубликовано',