Skip to content

Commit 6a24d2e

Browse files
committed
refactor: 去掉无用代码
1 parent 98f25c9 commit 6a24d2e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ui/src/components/ai-chat/KnowledgeSource.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,6 @@ const uniqueParagraphList = computed(() => {
9898
}) || []
9999
)
100100
})
101-
function fileType(name: string) {
102-
const suffix = name.split('.')
103-
return suffix[suffix.length - 1]
104-
}
105-
const typeList: any = {
106-
txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html'],
107-
table: ['xlsx', 'xls', 'csv'],
108-
QA: ['xlsx', 'csv', 'xls']
109-
}
110101
111102
function openLink(url: string) {
112103
// 如果url不是以/结尾,加上/

0 commit comments

Comments
 (0)