fix(distribution): 修复删除测试并新增分站只读二维码池
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
WalletOutlined,
|
||||
GiftOutlined,
|
||||
TeamOutlined,
|
||||
QrcodeOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { getMe, logout, type CurrentMember, getStoredToken } from './api'
|
||||
import { MemberContext } from './MemberContext'
|
||||
@@ -33,6 +34,7 @@ import Announcements from './pages/Announcements'
|
||||
import SiteSettings from './pages/SiteSettings'
|
||||
import Invitations from './pages/Invitations'
|
||||
import Users from './pages/Users'
|
||||
import QrCodePool from './pages/QrCodePool'
|
||||
import Login from './pages/Login'
|
||||
import Storefront from './pages/Storefront'
|
||||
import './style.css'
|
||||
@@ -47,6 +49,7 @@ function MainLayout({ member, onLogout }: { member: CurrentMember; onLogout: ()
|
||||
? [{ key: '/sites', icon: <ShopOutlined />, label: <Link to="/sites">分销站点管理</Link> }]
|
||||
: []),
|
||||
{ key: '/users', icon: <TeamOutlined />, label: <Link to="/users">客户与用户</Link> },
|
||||
{ key: '/qrcode-pool', icon: <QrcodeOutlined />, label: <Link to="/qrcode-pool">二维码池</Link> },
|
||||
{ key: '/orders', icon: <OrderedListOutlined />, label: <Link to="/orders">全部分销订单</Link> },
|
||||
{ key: '/sold', icon: <FileSearchOutlined />, label: <Link to="/sold">售出账号订单</Link> },
|
||||
{ key: '/receive', icon: <AccountBookOutlined />, label: <Link to="/receive">分销收号管理</Link> },
|
||||
@@ -173,6 +176,7 @@ function MainLayout({ member, onLogout }: { member: CurrentMember; onLogout: ()
|
||||
<Route path="/receive" element={<Orders kind="receive" />} />
|
||||
<Route path="/orders" element={<Orders kind="all" />} />
|
||||
<Route path="/users" element={<Users />} />
|
||||
<Route path="/qrcode-pool" element={<QrCodePool />} />
|
||||
<Route path="/invitations" element={<Invitations />} />
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Routes>
|
||||
|
||||
Reference in New Issue
Block a user