diff --git a/crop-x/src/components/layouts/SideBar/SideBarOld.tsx b/crop-x/src/components/layouts/SideBar/SideBarOld.tsx index d3730ea..69a90f2 100644 --- a/crop-x/src/components/layouts/SideBar/SideBarOld.tsx +++ b/crop-x/src/components/layouts/SideBar/SideBarOld.tsx @@ -22,17 +22,6 @@ interface SideBarData { navMain: NavItem[]; } -// 内部菜单项结构(用于LeftSidebar组件) -interface MenuItem { - id: string; - label: string; - icon?: React.ReactNode; - children?: { - id: string; - label: string; - path?: string; - }[]; -} interface SideBarOldProps { children: React.ReactNode; diff --git a/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx b/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx index b8530b1..85872ea 100644 --- a/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx +++ b/crop-x/src/components/layouts/SideBar/components/LeftSidebar.tsx @@ -53,18 +53,6 @@ export function LeftSidebar({ setExpandedMenus(new Set()); }, [isCollapsed]); - const toggleMenu = (menuId: string) => { - setExpandedMenus(prev => { - const newSet = new Set(prev); - if (newSet.has(menuId)) { - newSet.delete(menuId); - } else { - newSet.add(menuId); - } - return newSet; - }); - }; - return (