From 358387830157292f74460db3c6ec0878260c0545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Sun, 21 Sep 2025 09:54:23 +0800 Subject: [PATCH] fix: orderlist empty status --- src/order_pages/orderList/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 && ( 暂时没有订单