diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue index 7461967..3ff57a2 100644 --- a/src/views/reportProcess/components/reportForm.vue +++ b/src/views/reportProcess/components/reportForm.vue @@ -467,7 +467,7 @@ export default { beforeUploadFile(file) { let realFileType = file.name.split('.')[file.name.split('.').length - 1]; const isType = ( - file.type === fileType.pdf || file.type === fileType.xls || file.type === fileType.xlsx || file.type === fileType.doc || file.type === fileType.docx || file.type === fileType.ppt || file.type === fileType.pptx + file.type === fileType.pdf || file.type === fileType.ppt || file.type === fileType.pptx || realFileType === 'pdf' || realFileType === 'ppt' || realFileType === 'pptx' ); const isSize = file.size / 1024 / 1024 < 200;