From 7dd886136630bbde17ac14f3d21ea3a4588ed813 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 16 Nov 2025 23:22:00 +0800 Subject: [PATCH] feat: Refine FAQ Entry Manager UI and localization for clarity and usability - Updated the FAQ Entry Manager layout to enhance the organization of question types with distinct styling for similar and negative questions. - Improved localization strings in Chinese for better clarity, including simplified terms for document and FAQ types. - Enhanced search results display by adding index numbers and optimizing the layout for better user experience. - Implemented responsive design adjustments and improved styling for better visual consistency across components. --- frontend/src/i18n/locales/zh-CN.ts | 4 +- .../knowledge/components/FAQEntryManager.vue | 182 ++++++++++++------ 2 files changed, 120 insertions(+), 66 deletions(-) diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index fdfeadb3..d1df67ce 100644 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1002,8 +1002,8 @@ export default { title: "基本信息", description: "设置知识库的名称和描述信息", typeLabel: "知识库类型", - typeDocument: "文档型", - typeFAQ: "FAQ 问答", + typeDocument: "文档", + typeFAQ: "问答", typeDescription: "FAQ 类型适合结构化问答数据;文档型支持文件解析与分块。", nameLabel: "知识库名称", namePlaceholder: "请输入知识库名称", diff --git a/frontend/src/views/knowledge/components/FAQEntryManager.vue b/frontend/src/views/knowledge/components/FAQEntryManager.vue index 22f74648..23f1cfc6 100644 --- a/frontend/src/views/knowledge/components/FAQEntryManager.vue +++ b/frontend/src/views/knowledge/components/FAQEntryManager.vue @@ -243,7 +243,7 @@ -
+

{{ $t('knowledgeEditor.faq.similarQuestionsDesc') }}

@@ -289,7 +289,7 @@
-
+

{{ $t('knowledgeEditor.faq.negativeQuestionsDesc') }}

@@ -335,7 +335,7 @@
-
+