refactor: 调整路由结构,使告警板块支持子路由
This commit is contained in:
@@ -77,9 +77,15 @@ const menuOptions: MenuOption[] = [
|
||||
icon: renderIcon(HddFilled),
|
||||
},
|
||||
{
|
||||
label: () => h(RouterLink, { to: '/alarm' }, { default: () => '设备告警' }),
|
||||
label: '设备告警',
|
||||
key: '/alarm',
|
||||
icon: renderIcon(AlertFilled),
|
||||
children: [
|
||||
{
|
||||
label: () => h(RouterLink, { to: '/alarm/alarm-log' }, { default: () => '设备告警记录' }),
|
||||
key: '/alarm/alarm-log',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '系统日志',
|
||||
|
||||
@@ -23,7 +23,12 @@ const router = createRouter({
|
||||
},
|
||||
{
|
||||
path: 'alarm',
|
||||
component: () => import('@/pages/alarm-page.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'alarm-log',
|
||||
component: () => import('@/pages/alarm-log-page.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'log',
|
||||
|
||||
Reference in New Issue
Block a user