diff --git a/web/src/components/Layout.tsx b/web/src/components/Layout.tsx index 5f08883..a667178 100644 --- a/web/src/components/Layout.tsx +++ b/web/src/components/Layout.tsx @@ -33,7 +33,7 @@ import { SystemNotice } from '@/components/business/SystemNotice' import { ToastHost } from '@/components/business/ToastHost' import { resetAuthCache } from '@/lib/auth' import { eventBus } from '@/lib/event-bus' -import { Button, cn } from '@/components/ui' +import { cn } from '@/components/ui' const NAV_ITEMS = [ { path: '/', icon: LayoutDashboard, label: '数据仪表', exact: true }, @@ -213,23 +213,6 @@ export default function Layout() { ) })} - - {/* 桌面端:侧栏底部放一个次要折叠入口,主入口在顶栏 */} - {!isMobile && ( -
- -
- )}
@@ -237,19 +220,19 @@ export default function Layout() {
{isMobile ? ( ) : ( )}

@@ -257,30 +240,30 @@ export default function Layout() {

-
+ {/* 顶栏工具统一 h-8,避免通知/主题/用户高度不一致 */} +
- + - {/* 用户菜单:退出登录放这里,比左下角更干净 */}
+ {open ? ( <>