Pre Merge pull request !292 from 云飞扬/N/A

This commit is contained in:
云飞扬 2024-01-11 07:48:21 +00:00 committed by Gitee
commit a07074b537
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export default {
if (this.fileType) {
const fileName = file.name.split('.');
const fileExt = fileName[fileName.length - 1];
const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
const isTypeOk = this.fileType.toLowerCase().indexOf(fileExt.toLowerCase()) >= 0;
if (!isTypeOk) {
this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`);
return false;