fix: 支持PDF大写后缀

This commit is contained in:
wangdan-fit2cloud 2024-08-28 19:04:50 +08:00
parent 07555ec2c7
commit a755a37a44
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', 'csv', 'md', 'html', 'PDF'],
QA: ['xlsx', 'csv', 'xls'] QA: ['xlsx', 'csv', 'xls']
} }

View File

@ -58,7 +58,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, .csv, .log, .docx, .pdf, .html, .PDF"
:limit="50" :limit="50"
:on-exceed="onExceed" :on-exceed="onExceed"
:on-change="fileHandleChange" :on-change="fileHandleChange"