实现多商户履约平台基础
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
MenuUnfoldOutlined,
|
||||
SendOutlined,
|
||||
ApiOutlined,
|
||||
ShopOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { useAuth } from '../store/auth'
|
||||
import type { MenuProps } from 'antd'
|
||||
@@ -40,10 +41,12 @@ export default function MainLayout() {
|
||||
{ key: '/', icon: <DashboardOutlined />, label: '数据概览' },
|
||||
{ key: '/skins', icon: <SkinOutlined />, label: '皮肤商品' },
|
||||
{ key: '/orders', icon: <ShoppingOutlined />, label: '订单管理' },
|
||||
{ key: '/merchant-center', icon: <ShopOutlined />, label: '商户中心' },
|
||||
]
|
||||
if (isAdmin) {
|
||||
items.push(
|
||||
{ key: '/distributors', icon: <TeamOutlined />, label: '分销商' },
|
||||
{ key: '/platform-merchants', icon: <ShopOutlined />, label: '商户管理' },
|
||||
{ key: '/ship-logs', icon: <SendOutlined />, label: '发货记录' },
|
||||
{ key: '/open-api', icon: <ApiOutlined />, label: '开放接口' },
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user