1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 04:54:16 +08:00

50 lines
1.2 KiB
Go
Raw Normal View History

2022-08-17 17:46:49 +08:00
import { Layout } from '@/routers/constant';
const hostRouter = {
2022-09-09 11:20:02 +08:00
sort: 7,
path: '/hosts',
2022-08-17 17:46:49 +08:00
component: Layout,
2022-09-09 11:20:02 +08:00
redirect: '/hosts/security',
2022-08-17 17:46:49 +08:00
meta: {
icon: 'p-host',
title: 'menu.host',
},
children: [
{
2022-09-09 11:20:02 +08:00
path: '/hosts/security',
2022-08-17 17:46:49 +08:00
name: 'Security',
component: () => import('@/views/host/security/index.vue'),
meta: {
title: 'menu.security',
},
},
{
2022-09-09 11:20:02 +08:00
path: '/hosts/files',
2022-08-17 17:46:49 +08:00
name: 'File',
component: () => import('@/views/host/file-management/index.vue'),
meta: {
title: 'menu.files',
2022-09-09 11:20:02 +08:00
},
},
{
path: '/hosts/monitor',
name: 'Monitor',
2022-09-14 23:27:17 +08:00
component: () => import('@/views/host/monitor/index.vue'),
2022-09-09 11:20:02 +08:00
meta: {
title: 'menu.monitor',
},
},
{
path: '/host/terminal',
name: 'Terminal',
component: () => import('@/views/host/terminal/index.vue'),
meta: {
title: 'menu.terminal',
2022-08-17 17:46:49 +08:00
keepAlive: true,
},
},
],
};
export default hostRouter;