From c56f3802b4e2f8bec415cc7f073a1aa30bb0e3f1 Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Fri, 20 Mar 2026 15:29:52 +0800 Subject: [PATCH] add log page --- frontend/src/components/layouts/MainLayout.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/components/layouts/MainLayout.vue b/frontend/src/components/layouts/MainLayout.vue index 5399b8e..51e78a7 100644 --- a/frontend/src/components/layouts/MainLayout.vue +++ b/frontend/src/components/layouts/MainLayout.vue @@ -17,6 +17,9 @@ import { KeyOutlined, TeamOutlined, ApartmentOutlined, + FileSearchOutlined, + ApiOutlined, + HistoryOutlined, } from '@ant-design/icons-vue' import type { Component } from 'vue' @@ -50,6 +53,7 @@ const initOpenKeys = () => { const path = route.path if (path.startsWith('/order')) openKeys.value = ['orders-group'] else if (path.startsWith('/refund')) openKeys.value = ['refunds-group'] + else if (path.startsWith('/logs')) openKeys.value = ['logs-group'] } onMounted(initOpenKeys) @@ -82,6 +86,16 @@ const menuItems: MenuItem[] = [ { key: '/route-groups', icon: ApartmentOutlined, label: '路由组管理', adminOnly: true }, { key: '/mq-status', icon: MonitorOutlined, label: '队列监控', adminOnly: true }, { key: '/failed-messages', icon: WarningOutlined, label: '失败消息', adminOnly: true }, + { + key: 'logs-group', + icon: FileSearchOutlined, + label: '系统日志', + adminOnly: true, + children: [ + { key: '/logs/requests', icon: ApiOutlined, label: '请求日志' }, + { key: '/logs/operations', icon: HistoryOutlined, label: '操作日志' }, + ], + }, ] const filteredMenuItems = computed(() => @@ -116,6 +130,8 @@ const breadcrumbItems = computed(() => { '/route-groups': '路由组管理', '/mq-status': '队列监控', '/failed-messages': '失败消息', + '/logs/requests': '请求日志', + '/logs/operations': '操作日志', '/profile': '个人信息', '/profile/password': '修改密码', }