From 9d32234015f4fdaf957c4ea7bdc2cdc46c2503e6 Mon Sep 17 00:00:00 2001 From: linkeyu Date: Wed, 22 Jul 2026 17:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=89=8D=E7=AB=AF=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E2=80=9C=E7=9B=91=E6=8E=A7=E5=AE=A1=E8=AE=A1?= =?UTF-8?q?=E2=80=9D=E4=B8=80=E7=BA=A7=E7=9B=AE=E5=BD=95=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 变更 - 左侧导航新增一级目录“监控审计”。 - 将设备存活、埋点成功率、埋点日志和审计日志统一迁入该目录。 - 从“看板”移除技术监控项,并取消埋点日志、审计日志的独立一级入口。 - 保留现有页面权限过滤逻辑:无可见子项时不会展示该目录。 ## 验证 - `npm run build` 通过,Next.js 编译、lint 和 TypeScript 检查均成功。 ## 后端配套 - WonderableAI/shaguabijia-app-server#159 --------- Co-authored-by: linkeyu <798648091@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-admin-web/pulls/63 Co-authored-by: linkeyu Co-committed-by: linkeyu --- src/app/(main)/layout.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 609375c..f45b11f 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -67,8 +67,6 @@ const NAV_GROUPS: NavGroup[] = [ { key: '/comparison-records', icon: , label: '比价记录' }, { key: '/coupon-data', icon: , label: '领券记录' }, { key: '/cps', icon: , label: 'CPS收益' }, - { key: '/device-liveness', icon: , label: '设备存活' }, - { key: '/analytics-health', icon: , label: '埋点成功率' }, ], }, { @@ -92,9 +90,18 @@ const NAV_GROUPS: NavGroup[] = [ { key: '/users', icon: , label: '用户管理' }, ], }, + { + key: 'monitoring-audit', + icon: , + label: '监控审计', + children: [ + { key: '/device-liveness', icon: , label: '设备存活' }, + { key: '/analytics-health', icon: , label: '埋点成功率' }, + { key: '/event-logs', icon: , label: '埋点日志' }, + { key: '/audit-logs', icon: , label: '审计日志' }, + ], + }, { key: '/admins', icon: , label: '权限管理' }, - { key: '/event-logs', icon: , label: '埋点日志' }, - { key: '/audit-logs', icon: , label: '审计日志' }, ]; // 导航项 key(/dashboard)→ 权限页 key(dashboard),与后端 permissions.py 目录对齐