From 15d5dc93c05a1f1d7dea93be056a86c2de8a1e52 Mon Sep 17 00:00:00 2001 From: wmp <17516219072@163.com> Date: Tue, 21 Oct 2025 11:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(root)/gatewayMonitor/page.tsx | 9 ++------- src/app/(root)/layout.tsx | 23 +++++++++++++++-------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/app/(root)/gatewayMonitor/page.tsx b/src/app/(root)/gatewayMonitor/page.tsx index a53159b..5c5779f 100644 --- a/src/app/(root)/gatewayMonitor/page.tsx +++ b/src/app/(root)/gatewayMonitor/page.tsx @@ -218,7 +218,6 @@ function GatewayConfigContent() { setGatewayPairs(gatewayPairsList) setCurrentTotal(matrix.length) setTotalCount(Object.values(macConfigMap).reduce((sum, configs) => sum + configs.length, 0)) - console.log('矩阵构建完成:', { 表头列数: gatewayPairsList.length, 矩阵行数: matrix.length }) } catch (error) { toast.error('构建矩阵数据失败') @@ -383,12 +382,8 @@ function GatewayConfigContent() { )} /> - - + + diff --git a/src/app/(root)/layout.tsx b/src/app/(root)/layout.tsx index 825c138..a461e0e 100644 --- a/src/app/(root)/layout.tsx +++ b/src/app/(root)/layout.tsx @@ -6,6 +6,13 @@ import { logout } from '@/actions/auth' import { LogOutIcon } from 'lucide-react' import Link from 'next/link' import { cn } from '@/lib/utils' +import { DoorClosedIcon } from 'lucide-react' +import { DoorClosedLockedIcon } from 'lucide-react' +import { DoorOpenIcon } from 'lucide-react' +import { MapPinnedIcon } from 'lucide-react' +import { ContainerIcon } from 'lucide-react' +import { GitForkIcon } from 'lucide-react' +import { SettingsIcon } from 'lucide-react' export default function DashboardLayout({ children, @@ -64,13 +71,13 @@ export default function DashboardLayout({
{/* 侧边栏 */} {/* 内容区域 */} @@ -92,7 +99,7 @@ function NavbarItem(props: { href={props.href} className={cn( 'transition-colors duration-150 ease-in-out', - 'p-2 rounded-md text-sm flex items-center', + 'p-2 gap-2 rounded-md text-sm flex items-center', props.active ? 'text-primary bg-primary/10' : 'hover:bg-muted',