Commit 8c9823e9586d9614caa0d70b559f245618f99bf8

Authored by 曾国涛
1 parent 1564fd17

feat: 开票功能开发

Showing 1 changed file with 2 additions and 2 deletions
src/pages/Invoice/index.tsx
@@ -56,7 +56,7 @@ const InvoicePage = () => { @@ -56,7 +56,7 @@ const InvoicePage = () => {
56 const [invoiceRecordDetailVisible, setInvoiceRecordDetailVisible] = 56 const [invoiceRecordDetailVisible, setInvoiceRecordDetailVisible] =
57 useState(false); 57 useState(false);
58 const [invoiceRecord, setInvoiceRecord] = useState({}); 58 const [invoiceRecord, setInvoiceRecord] = useState({});
59 - const [messageApi] = message.useMessage(); 59 + const [messageApi, contextHolder] = message.useMessage();
60 60
61 useEffect(() => { 61 useEffect(() => {
62 async function extracted() { 62 async function extracted() {
@@ -910,7 +910,6 @@ const InvoicePage = () => { @@ -910,7 +910,6 @@ const InvoicePage = () => {
910 messageApi.open({ 910 messageApi.open({
911 type: 'loading', 911 type: 'loading',
912 content: '正在导出文件...', 912 content: '正在导出文件...',
913 - duration: 0,  
914 }); 913 });
915 excelExport( 914 excelExport(
916 '/api/service/invoice/exportInvoiceRecords', 915 '/api/service/invoice/exportInvoiceRecords',
@@ -1140,6 +1139,7 @@ const InvoicePage = () => { @@ -1140,6 +1139,7 @@ const InvoicePage = () => {
1140 ) : ( 1139 ) : (
1141 '' 1140 ''
1142 )} 1141 )}
  1142 + {contextHolder}
1143 </div> 1143 </div>
1144 ); 1144 );
1145 }; 1145 };