|
|
|
@ -3198,10 +3198,10 @@ export default {
|
|
|
|
|
const isType = file.type === 'application/vnd.ms-excel'
|
|
|
|
|
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
|
|
const fileType = isType || isTypeComputer
|
|
|
|
|
if (!fileType) {
|
|
|
|
|
this.$message.error('上传文件只能是xls/xlsx格式!')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if (!fileType) {
|
|
|
|
|
// this.$message.error('上传文件只能是xls/xlsx格式!')
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
startLoading()
|
|
|
|
|
return fileType
|
|
|
|
|
},
|
|
|
|
|