From abe3bc4af040311bcae59ee01093ab24368ae694 Mon Sep 17 00:00:00 2001 From: wuyize Date: Mon, 9 Jan 2023 11:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=BB=9F=E8=AE=A1=E4=B8=8A?= =?UTF-8?q?=E6=9C=88=E6=95=B0=E6=8D=AE=E7=8E=B0=E5=9C=A8=E6=98=AF=E7=9C=9F?= =?UTF-8?q?=E5=AE=9E=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Invoice/mine/InvoiceUploadView.tsx | 7 +++++++ src/pages/stat/StatView.tsx | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/pages/Invoice/mine/InvoiceUploadView.tsx b/src/pages/Invoice/mine/InvoiceUploadView.tsx index c338d17..245e244 100644 --- a/src/pages/Invoice/mine/InvoiceUploadView.tsx +++ b/src/pages/Invoice/mine/InvoiceUploadView.tsx @@ -112,6 +112,8 @@ function FormModal(props: any) { const [invoice, setInvoice] = useState({}) const [formItems, setFormItems] = useState(undefined) const [form] = Form.useForm(); + const [messageApi, contextHolder] = message.useMessage(); + useEffect(() => { //setOpen(props.open) console.log(props.invoiceIdentifyResponse) @@ -150,6 +152,10 @@ function FormModal(props: any) { }).catch(function (error) { console.log(error) setLoading(false) + messageApi.open({ + type: 'error', + content: error.response.data.msg, + }); }) } @@ -247,6 +253,7 @@ function FormModal(props: any) {