fix: 上传文本文件去掉csv

--bug=1049721 --user=刘瑞斌 【知识库】上传文本文件夹,里面包含csv文件,csv文件也能上传成功 https://www.tapd.cn/57709429/s/1620432
This commit is contained in:
CaptainB 2024-11-28 17:33:05 +08:00 committed by 刘瑞斌
parent f0fecf455f
commit c07f728d87
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export function fileType(name: string) {
*/ */
const typeList: any = { const typeList: any = {
txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html'], txt: ['txt', 'pdf', 'docx', 'md', 'html'],
table: ['xlsx', 'xls', 'csv'], table: ['xlsx', 'xls', 'csv'],
QA: ['xlsx', 'csv', 'xls'] QA: ['xlsx', 'csv', 'xls']
} }

View File

@ -129,7 +129,7 @@
action="#" action="#"
:auto-upload="false" :auto-upload="false"
:show-file-list="false" :show-file-list="false"
accept=".txt, .md, .csv, .log, .docx, .pdf, .html" accept=".txt, .md, .log, .docx, .pdf, .html"
:limit="50" :limit="50"
:on-exceed="onExceed" :on-exceed="onExceed"
:on-change="fileHandleChange" :on-change="fileHandleChange"