1
This commit is contained in:
@@ -597,6 +597,7 @@ const AppLayout: React.FC = () => {
|
||||
{ key: 'profile', icon: <UserOutlined />, label: `账号: ${user?.username}`, disabled: true },
|
||||
{ key: 'credits', icon: <WalletOutlined style={{ color: '#c9a96e' }} />, label: `积分: ${user?.credits ?? 0}`, disabled: true },
|
||||
{ type: 'divider' as const },
|
||||
...(user?.isTeamManager ? [{ key: 'teamManagement' as const, icon: <TeamOutlined style={{ color: '#6366f1' }} />, label: '团队管理' }] : []),
|
||||
{ key: 'myCredits', icon: <WalletOutlined />, label: '积分明细' },
|
||||
{ key: 'orderRecords', icon: <FileTextOutlined />, label: '订单记录' },
|
||||
{ key: 'messages', icon: <BellOutlined />, label: `消息中心${unreadCount > 0 ? `(${unreadCount})` : ''}` },
|
||||
@@ -612,6 +613,7 @@ const AppLayout: React.FC = () => {
|
||||
else if (key === 'changePwd') { setPwdModalOpen(true); }
|
||||
else if (key === 'messages') { navigate('/messages'); }
|
||||
else if (key === 'recharge') { setRechargeModalOpen(true); }
|
||||
else if (key === 'teamManagement') { navigate('/team-management'); }
|
||||
else if (key === 'myCredits') { navigate('/user-center?tab=credits'); }
|
||||
else if (key === 'orderRecords') { navigate('/user-center?tab=orders'); }
|
||||
else if (key === 'manual') { window.open(operationManualUrl, '_blank'); }
|
||||
@@ -837,16 +839,6 @@ const AppLayout: React.FC = () => {
|
||||
|
||||
<div style={{ flex: 1, padding: '8px 8px', overflow: 'auto' }}>
|
||||
{topLevelItems.map(item => renderMenuItem(item))}
|
||||
{user?.isTeamManager && renderMenuItem({
|
||||
id: 'team-management',
|
||||
key: 'team-management',
|
||||
label: '团队管理',
|
||||
path: '/team-management',
|
||||
icon: 'TeamOutlined',
|
||||
sortOrder: 999,
|
||||
isActive: true,
|
||||
menuType: 'page',
|
||||
} as any)}
|
||||
</div>
|
||||
|
||||
<div onClick={() => setRechargeModalOpen(true)} style={{
|
||||
|
||||
Reference in New Issue
Block a user