diff --git a/src/order_pages/orderList/index.tsx b/src/order_pages/orderList/index.tsx
index cd0ff1a..df326c9 100644
--- a/src/order_pages/orderList/index.tsx
+++ b/src/order_pages/orderList/index.tsx
@@ -242,6 +242,8 @@ const OrderList = () => {
});
}
+ const flatList = list.flat()
+
return (
{
className={styles.list}
>
{/* */}
- {list.flat().map((item) => {
+ {flatList.map((item) => {
const unPay =
item.order_status === OrderStatus.PENDING &&
item.cancel_type === CancelType.NONE;
@@ -386,10 +388,10 @@ const OrderList = () => {
);
})}
- {list.length > 0 && end && (
+ {flatList.length > 0 && end && (
已经到底了~
)}
- {list.length === 0 && (
+ {flatList.length === 0 && (
暂时没有订单