diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index c15d051..1164019 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -11,13 +11,6 @@ interface User { role: string } -const sceneGroups: Record = { - inquiry: { label: '询价发布助手', icon: '📋', pages: ['inquiry', 'lead-detail'] }, - product: { label: '商品上架助手', icon: '📦', pages: ['product'] }, - image: { label: '商品生图助手', icon: '🖼️', pages: ['image'] }, - comparison: { label: '智能比价助手', icon: '⚖️', pages: ['comparison'] }, -} - const adminPages: { key: Page; label: string }[] = [ { key: 'admin-tenants', label: '租户管理' }, { key: 'admin-stats', label: '使用统计' }, @@ -37,7 +30,6 @@ export default function Sidebar({ onLogout?: () => void }) { const [expandedGroups, setExpandedGroups] = useState>({ - inquiry: true, system: true, admin: true, }) @@ -45,10 +37,6 @@ export default function Sidebar({ const toggleGroup = (id: string) => setExpandedGroups((prev) => ({ ...prev, [id]: !prev[id] })) - const inScene = Object.entries(sceneGroups).find(([, g]) => - g.pages.includes(current) - ) - const isInAdmin = current.startsWith('admin-') return ( @@ -84,48 +72,17 @@ export default function Sidebar({ 业务场景 -
- - {expandedGroups.inquiry && ( -
- - -
- )} -
+ {[ { id: 'image', key: 'image' as Page, label: '商品生图助手', icon: '🖼️' },