From b400781b89d0f2a0ae404c29b3c5863b64fa5296 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Fri, 19 Dec 2025 13:58:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sidebar):=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E9=9B=86=E6=88=90=E5=BC=B9=E5=87=BA=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除原有的用户信息链接样式 - 集成 UserMenu 组件替代原有设计 - 支持主题切换、设置导航、登出等功能 --- src/components/layout/Sidebar.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 1a9cb9d..2af16ef 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -2,8 +2,8 @@ import Link from 'next/link'; import { usePathname, useRouter } from 'next/navigation'; -import { Plus, ChevronDown, PanelLeft, Trash2, MoreHorizontal, Loader2 } from 'lucide-react'; -import { Avatar } from '@/components/ui/Avatar'; +import { Plus, PanelLeft, Trash2, MoreHorizontal, Loader2 } from 'lucide-react'; +import { UserMenu } from '@/components/ui/UserMenu'; import { cn } from '@/lib/utils'; import { useConversations } from '@/hooks/useConversations'; import { useSettings } from '@/hooks/useSettings'; @@ -164,19 +164,9 @@ export function Sidebar({ user, isOpen = true }: SidebarProps) { )} - {/* 用户信息 Footer */} + {/* 用户信息 Footer - 使用 UserMenu 弹出菜单 */}