add log page

This commit is contained in:
2026-03-20 15:29:52 +08:00
parent f5e873d1ae
commit c56f3802b4
@@ -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': '修改密码',
}