From 4c583e40c06d7e80c0e5387f0e70bb09797c9a49 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 14 Nov 2025 10:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=83=A8=E6=8E=88=E6=9D=83-?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81=E5=9B=BE=E7=89=87pdf?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/materialStation/authorize/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/material/materialStation/authorize/index.vue b/src/views/material/materialStation/authorize/index.vue index 81b3c9c5..288421e2 100644 --- a/src/views/material/materialStation/authorize/index.vue +++ b/src/views/material/materialStation/authorize/index.vue @@ -174,7 +174,7 @@ :on-success="handleParseSuccess" :on-error="handleError" :on-remove="handleFileRemove" - accept=".docx" + accept=".docx, .pdf, image/*" :before-upload="beforeUploadDocx" :disabled="isEditMode" style="margin-right: 10px" @@ -733,10 +733,10 @@ export default { file.type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' - if (!isDocx || !isWordMime) { - this.$message.error('只能上传.docx格式的文件!') - return false // 阻止上传 - } + // if (!isDocx || !isWordMime) { + // this.$message.error('只能上传.docx格式的文件!') + // return false // 阻止上传 + // } // 限制大小,例如 10MB const isLt10M = file.size / 1024 / 1024 < 10