代下单功能

This commit is contained in:
2026-07-12 11:40:04 +08:00
parent d949301bc1
commit de01d36cdb
46 changed files with 2657 additions and 253 deletions
+4 -1
View File
@@ -35,6 +35,7 @@ const MENU_ITEMS: MenuProps['items'] = [
],
},
{ key: '/orders', icon: <ShoppingOutlined />, label: '订单' },
{ key: '/promo-codes', icon: <GiftOutlined />, label: '推广码' },
{
key: 'stores-group',
icon: <ShopOutlined />,
@@ -118,7 +119,9 @@ export default function AdminLayout() {
navigate('/login');
}
const selectedKey = location.pathname;
const selectedKey = location.pathname.startsWith('/promo-codes')
? '/promo-codes'
: location.pathname;
return (
<Layout style={{ height: '100vh', overflow: 'hidden' }}>