From 240d5d4b213b10df3fbd5b05e0fd3976eed0a0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Sun, 8 Mar 2026 10:06:09 +0800 Subject: [PATCH] =?UTF-8?q?sync:=20soul-admin=20=E5=89=8D=E7=AB=AF=20|=20?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0:=20=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soul-admin/src/layouts/AdminLayout.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/soul-admin/src/layouts/AdminLayout.tsx b/soul-admin/src/layouts/AdminLayout.tsx index 019b64cf..d7a44ef1 100644 --- a/soul-admin/src/layouts/AdminLayout.tsx +++ b/soul-admin/src/layouts/AdminLayout.tsx @@ -14,14 +14,11 @@ import { import { get, post } from '@/api/client' import { clearAdminToken } from '@/api/auth' -// 主菜单(核心运营 3 项) +// 主菜单(含原「更多」下的项,直接平铺) const primaryMenuItems = [ { icon: LayoutDashboard, label: '数据概览', href: '/dashboard' }, { icon: BookOpen, label: '内容管理', href: '/content' }, { icon: Users, label: '用户管理', href: '/users' }, -] -// 折叠区「更多」(业务模块) -const moreMenuItems = [ { icon: GitMerge, label: '找伙伴', href: '/find-partner' }, { icon: Wallet, label: '推广中心', href: '/distribution' }, ] @@ -31,15 +28,10 @@ export function AdminLayout() { const navigate = useNavigate() const [mounted, setMounted] = useState(false) const [authChecked, setAuthChecked] = useState(false) - const [moreExpanded, setMoreExpanded] = useState(false) useEffect(() => { setMounted(true) }, []) - useEffect(() => { - const inMore = moreMenuItems.some((item) => location.pathname === item.href) - if (inMore) setMoreExpanded(true) - }, [location.pathname]) useEffect(() => { if (!mounted) return