mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 05:42:51 +00:00
refactor: 去掉无用代码
This commit is contained in:
parent
98f25c99f2
commit
6a24d2eb8d
|
|
@ -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不是以/结尾,加上/
|
||||
|
|
|
|||
Loading…
Reference in New Issue