From 40c27d87f5989e94c48ee772d3e32e07ed9ae4bb Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 30 May 2025 23:18:19 +0800 Subject: [PATCH] feat: knowledge-base --- .../full/vertical-sidebar/sidebarItem.ts | 10 +- dashboard/src/views/alkaid/KnowledgeBase.vue | 8 +- dashboard/src/views/alkaid/LongTermMemory.vue | 111 +++++++----------- 3 files changed, 53 insertions(+), 76 deletions(-) diff --git a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts index f541d1d91..e8f49c741 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +++ b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts @@ -65,11 +65,11 @@ const sidebarItem: menu[] = [ icon: 'mdi-console', to: '/console' }, - // { - // title: 'Alkaid', - // icon: 'mdi-test-tube', - // to: '/alkaid' - // }, + { + title: 'Alkaid', + icon: 'mdi-test-tube', + to: '/alkaid' + }, { title: '关于', icon: 'mdi-information', diff --git a/dashboard/src/views/alkaid/KnowledgeBase.vue b/dashboard/src/views/alkaid/KnowledgeBase.vue index e31644e47..29889f41f 100644 --- a/dashboard/src/views/alkaid/KnowledgeBase.vue +++ b/dashboard/src/views/alkaid/KnowledgeBase.vue @@ -18,7 +18,9 @@
-

知识库列表

+

知识库列表 + mdi-information-outline +

创建知识库 @@ -698,6 +700,10 @@ export default { this.showSnackbar('获取嵌入模型列表失败', 'error'); return []; }); + }, + + openUrl(url) { + window.open(url, '_blank'); } } } diff --git a/dashboard/src/views/alkaid/LongTermMemory.vue b/dashboard/src/views/alkaid/LongTermMemory.vue index 45d687fec..e534c70d8 100644 --- a/dashboard/src/views/alkaid/LongTermMemory.vue +++ b/dashboard/src/views/alkaid/LongTermMemory.vue @@ -1,6 +1,11 @@