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; + }} + > + + +