From a755a37a44192f30afc4e7bcda51d9669235c8ca Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 28 Aug 2024 19:04:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E6=8C=81PDF=E5=A4=A7=E5=86=99?= =?UTF-8?q?=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/utils/utils.ts | 2 +- ui/src/views/dataset/component/UploadComponent.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/utils/utils.ts b/ui/src/utils/utils.ts index 818a18115..698a63625 100644 --- a/ui/src/utils/utils.ts +++ b/ui/src/utils/utils.ts @@ -38,7 +38,7 @@ export function fileType(name: string) { 获得文件对应图片 */ const typeList: any = { - txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html'], + txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html', 'PDF'], QA: ['xlsx', 'csv', 'xls'] } diff --git a/ui/src/views/dataset/component/UploadComponent.vue b/ui/src/views/dataset/component/UploadComponent.vue index 3c35c2c3f..d51aff263 100644 --- a/ui/src/views/dataset/component/UploadComponent.vue +++ b/ui/src/views/dataset/component/UploadComponent.vue @@ -58,7 +58,7 @@ action="#" :auto-upload="false" :show-file-list="false" - accept=".txt, .md, .csv, .log, .docx, .pdf, .html" + accept=".txt, .md, .csv, .log, .docx, .pdf, .html, .PDF" :limit="50" :on-exceed="onExceed" :on-change="fileHandleChange"