From 0999c362b8d3ef963a52209b9c4d4a041af6fe47 Mon Sep 17 00:00:00 2001 From: yuance <182865460@qq.com> Date: Fri, 29 May 2026 08:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E6=B7=BB=E5=8A=A0=E6=96=87=E6=A1=A3=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/oaCompany/components/Import2.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/oa/oaCompany/components/Import2.vue b/src/views/oa/oaCompany/components/Import2.vue index 1bbbb6f..8160c31 100644 --- a/src/views/oa/oaCompany/components/Import2.vue +++ b/src/views/oa/oaCompany/components/Import2.vue @@ -137,7 +137,10 @@ '.txt', '.md', '.xls', - '.xlsx' + '.xlsx', + '.jpg', + '.png', + '.jpeg' ]; const fileExtension = '.' + file.name.split('.').pop()?.toLowerCase(); @@ -145,7 +148,7 @@ !allowedTypes.includes(file.type) && !allowedExtensions.includes(fileExtension) ) { - message.error('只能上传文档文件(PDF、Word、Excel、TXT、MD)'); + message.error('只能上传文档或图片文件(PDF、Word、Excel、TXT、MD、JPG、PNG)'); return false; }