From 6a24d2eb8d6ab89f19179e4e84556112f66de1d6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 26 Nov 2024 14:07:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8E=BB=E6=8E=89=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/KnowledgeSource.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue index 1c5369a3c..cb8bf66db 100644 --- a/ui/src/components/ai-chat/KnowledgeSource.vue +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -98,15 +98,6 @@ const uniqueParagraphList = computed(() => { }) || [] ) }) -function fileType(name: string) { - const suffix = name.split('.') - return suffix[suffix.length - 1] -} -const typeList: any = { - txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html'], - table: ['xlsx', 'xls', 'csv'], - QA: ['xlsx', 'csv', 'xls'] -} function openLink(url: string) { // 如果url不是以/结尾,加上/