From 9ffeb629113ad5a4dc824ad6b6b8b26ce0857474 Mon Sep 17 00:00:00 2001 From: lyp Date: Wed, 5 Mar 2025 01:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/payment/Payment.tsx | 33 +++++++++++++++++------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/components/payment/Payment.tsx b/src/components/payment/Payment.tsx index 33b8666..3a52b3f 100644 --- a/src/components/payment/Payment.tsx +++ b/src/components/payment/Payment.tsx @@ -621,20 +621,25 @@ export default function Payment(props: IPaymentProps) { }} rules={[{ required: true, message: '请上传打款凭证' }]} > - { - const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png'; - if (!isJpgOrPng) { - message.error('只能上传 JPG/PNG 格式文件!'); - } - return isJpgOrPng; - }} - > - - +
+ { + const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png'; + if (!isJpgOrPng) { + message.error('只能上传 JPG/PNG 格式文件!'); + } + return isJpgOrPng; + }} + > + + +