diff --git a/ui/src/utils/utils.ts b/ui/src/utils/utils.ts index 066399032..a3c03ef28 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', 'md', 'html'], table: ['xlsx', 'xls', 'csv'], QA: ['xlsx', 'csv', 'xls'] } diff --git a/ui/src/views/dataset/component/UploadComponent.vue b/ui/src/views/dataset/component/UploadComponent.vue index 53f2d8103..c6f0ad768 100644 --- a/ui/src/views/dataset/component/UploadComponent.vue +++ b/ui/src/views/dataset/component/UploadComponent.vue @@ -129,7 +129,7 @@ action="#" :auto-upload="false" :show-file-list="false" - accept=".txt, .md, .csv, .log, .docx, .pdf, .html" + accept=".txt, .md, .log, .docx, .pdf, .html" :limit="50" :on-exceed="onExceed" :on-change="fileHandleChange"