From 9bcfb0e1f426915752254a453473c11a0ac63a18 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 5 Jun 2026 00:35:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=A9=BA=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/EvaluationBenchmarks.vue | 62 ++++----- web/src/components/KnowledgeGraphSection.vue | 106 ++++++++++---- web/src/components/RAGEvaluationTab.vue | 31 +++-- .../components/shared/ResourceEmptyState.vue | 130 ++++++++++++++++++ web/src/views/DataBaseView.vue | 75 ++++------ 5 files changed, 281 insertions(+), 123 deletions(-) create mode 100644 web/src/components/shared/ResourceEmptyState.vue diff --git a/web/src/components/EvaluationBenchmarks.vue b/web/src/components/EvaluationBenchmarks.vue index e05b79c4..1b35fdff 100644 --- a/web/src/components/EvaluationBenchmarks.vue +++ b/web/src/components/EvaluationBenchmarks.vue @@ -23,11 +23,24 @@
-
-
📋
-
暂无评估基准
-
上传或生成评估基准开始使用
-
+ + +
@@ -272,9 +285,19 @@ + + diff --git a/web/src/views/DataBaseView.vue b/web/src/views/DataBaseView.vue index 88aefd2e..ab8a0eab 100644 --- a/web/src/views/DataBaseView.vue +++ b/web/src/views/DataBaseView.vue @@ -27,10 +27,11 @@ @@ -182,21 +183,27 @@
-
-

暂无知识库

-

创建您的第一个知识库,开始管理文档和知识

- - - 创建知识库 - -
+ + + @@ -224,11 +231,13 @@ import { useRouter, useRoute } from 'vue-router' import { storeToRefs } from 'pinia' import { useConfigStore } from '@/stores/config' import { useDatabaseStore } from '@/stores/database' -import { PlusOutlined, QuestionCircleOutlined } from '@ant-design/icons-vue' +import { QuestionCircleOutlined } from '@ant-design/icons-vue' +import { Plus } from 'lucide-vue-next' import { message } from 'ant-design-vue' import { typeApi } from '@/apis/knowledge_api' import PageHeader from '@/components/shared/PageHeader.vue' import PageShoulder from '@/components/shared/PageShoulder.vue' +import ResourceEmptyState from '@/components/shared/ResourceEmptyState.vue' import EmbeddingModelSelector from '@/components/EmbeddingModelSelector.vue' import ShareConfigForm from '@/components/ShareConfigForm.vue' import ExtensionCardGrid from '@/components/extensions/ExtensionCardGrid.vue' @@ -736,38 +745,6 @@ defineExpose({ padding: 0; } -.empty-state { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 100px 20px; - text-align: center; - - .empty-title { - font-size: 20px; - font-weight: 600; - color: var(--gray-900); - margin: 0 0 12px 0; - letter-spacing: -0.02em; - } - - .empty-description { - font-size: 14px; - color: var(--gray-600); - margin: 0 0 32px 0; - line-height: 1.5; - max-width: 320px; - } - - .ant-btn { - height: 44px; - padding: 0 24px; - font-size: 15px; - font-weight: 500; - } -} - .loading-container { display: flex; flex-direction: column;