This commit is contained in:
JIAL 2024-07-08 09:28:49 +08:00
parent 2d9f13ea59
commit bbf6fb0631
1 changed files with 2 additions and 1 deletions

View File

@ -584,7 +584,8 @@ export default {
this.quotXjFileLoading = true;
let activeName = this.activeName;
if(activeName=='quotXjFile'){
if(file.name.split('.')[1].toLowerCase() != 'xls' && file.name.split('.')[1].toLowerCase() != 'xlsx'){
const fileExtension = file.name.split('.').pop();
if(fileExtension.toLowerCase() != 'xls' && fileExtension.toLowerCase() != 'xlsx'){
this.$modal.msgError("清单附件必须是Excel格式");
this.quotXjFileLoading = false;
return false;