Commit 07a17e98a010d66f2e8235d465785261530d09fc
1 parent
9c7ea268
fix: 弹窗跳转到订单预警页面
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/Order/Order/index.tsx
@@ -4517,7 +4517,7 @@ const OrderPage = () => { | @@ -4517,7 +4517,7 @@ const OrderPage = () => { | ||
4517 | } | 4517 | } |
4518 | const [invoiceWarningNum, setInvoiceWarningNum] = useState(0); | 4518 | const [invoiceWarningNum, setInvoiceWarningNum] = useState(0); |
4519 | const [invoiceRefundWarningNum, setInvoiceRefundWarningNum] = useState(0); | 4519 | const [invoiceRefundWarningNum, setInvoiceRefundWarningNum] = useState(0); |
4520 | - const [open, setOpen] = useState(false); | 4520 | + const [open, setOpen] = useState(true); |
4521 | const { openCount, setOpenCount } = useModel('count'); | 4521 | const { openCount, setOpenCount } = useModel('count'); |
4522 | async function getInvoiceWarningNum() { | 4522 | async function getInvoiceWarningNum() { |
4523 | const res = await postServiceOrderWarningOrderStatistics(); | 4523 | const res = await postServiceOrderWarningOrderStatistics(); |
@@ -4539,6 +4539,7 @@ const OrderPage = () => { | @@ -4539,6 +4539,7 @@ const OrderPage = () => { | ||
4539 | //隐藏弹窗 | 4539 | //隐藏弹窗 |
4540 | const hideModal = () => { | 4540 | const hideModal = () => { |
4541 | setOpen(false); | 4541 | setOpen(false); |
4542 | + window.location.href = '/order/OrderWarning'; | ||
4542 | }; | 4543 | }; |
4543 | return ( | 4544 | return ( |
4544 | <div className="order-page-container"> | 4545 | <div className="order-page-container"> |