2021-06-07 18:35:16 +08:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{ path: '/', redirect: '/login' },
|
|
|
|
|
{
|
|
|
|
|
path: '/login',
|
|
|
|
|
component: () => import('@/Login')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: () => import('@/components/layout/Home'),
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2022-08-24 07:29:40 +08:00
|
|
|
name: 'panel',
|
2021-06-11 23:00:33 +08:00
|
|
|
path: '/panel/:typeName',
|
2022-07-06 21:08:12 +08:00
|
|
|
component: () => import('@/views/charts2/Panel')
|
2021-06-11 10:00:22 +08:00
|
|
|
},
|
2022-04-12 18:00:01 +08:00
|
|
|
{
|
|
|
|
|
path: '/report/builtIn',
|
2023-03-09 10:14:05 +08:00
|
|
|
component: () => import('@/views/report/Report')
|
2022-06-01 16:33:54 +08:00
|
|
|
},
|
2021-07-06 17:51:17 +08:00
|
|
|
{
|
|
|
|
|
path: '/entityExplorer',
|
2021-12-14 16:42:45 +08:00
|
|
|
component: () => import('@/views/entityExplorer/EntityExplorer')
|
2021-09-02 17:12:27 +08:00
|
|
|
},
|
2023-05-15 15:31:22 +08:00
|
|
|
{
|
|
|
|
|
path: '/entityDetail',
|
|
|
|
|
component: () => import('@/views/entityExplorer/EntityDetail')
|
|
|
|
|
},
|
2023-06-16 17:18:58 +08:00
|
|
|
{
|
|
|
|
|
path: '/entityGraph',
|
2023-07-30 23:29:32 +08:00
|
|
|
component: () => import('@/views/entityExplorer/EntityGraph2')
|
2023-06-16 17:18:58 +08:00
|
|
|
},
|
2023-02-26 23:06:57 +08:00
|
|
|
{
|
|
|
|
|
path: '/detection',
|
|
|
|
|
redirect: '/detection/securityEvent'
|
|
|
|
|
},
|
2022-02-14 22:22:31 +08:00
|
|
|
{
|
2022-02-25 13:33:54 +08:00
|
|
|
path: '/detection/:typeName',
|
2022-02-14 22:22:31 +08:00
|
|
|
component: () => import('@/views/detections/Index')
|
|
|
|
|
},
|
2022-05-18 15:23:38 +08:00
|
|
|
{
|
|
|
|
|
path: '/businessLog/viewer',
|
|
|
|
|
component: () => import('@/views/businessLog/Viewer')
|
2022-12-02 16:02:18 +08:00
|
|
|
},
|
2023-02-23 18:12:20 +08:00
|
|
|
{
|
|
|
|
|
path: '/knowledgeBase',
|
|
|
|
|
component: () => import('@/views/setting/KnowledgeBase')
|
|
|
|
|
},
|
2023-02-24 18:51:17 +08:00
|
|
|
{
|
2023-03-23 16:13:55 +08:00
|
|
|
path: '/knowledgeBase/create',
|
|
|
|
|
component: () => import('@/views/setting/KnowledgeBaseForm')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/knowledgeBase/edit',
|
2023-02-24 18:51:17 +08:00
|
|
|
component: () => import('@/views/setting/KnowledgeBaseForm')
|
|
|
|
|
},
|
2022-12-02 16:02:18 +08:00
|
|
|
{
|
|
|
|
|
name: 'Administration',
|
|
|
|
|
path: '/administration',
|
|
|
|
|
redirect: '/administration/user',
|
|
|
|
|
component: () => import('@/views/administration/Index'),
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
name: 'User',
|
|
|
|
|
path: '/administration/user',
|
|
|
|
|
component: () => import('@/views/administration/User')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Role',
|
|
|
|
|
path: '/administration/role',
|
|
|
|
|
component: () => import('@/views/administration/Roles')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'OperationLog',
|
|
|
|
|
path: '/administration/operationLog',
|
|
|
|
|
component: () => import('@/views/administration/OperationLog')
|
2023-03-20 17:48:41 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Appearance',
|
|
|
|
|
path: '/administration/appearance',
|
|
|
|
|
component: () => import('@/views/administration/Appearance')
|
2022-12-02 16:02:18 +08:00
|
|
|
}
|
|
|
|
|
]
|
2023-02-23 18:12:20 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'I18n',
|
|
|
|
|
path: '/i18n',
|
|
|
|
|
component: () => import('@/views/administration/I18n')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Chart',
|
|
|
|
|
path: '/chart',
|
|
|
|
|
component: () => import('@/views/administration/Chart')
|
2022-03-22 11:02:22 +08:00
|
|
|
}
|
2021-06-07 18:35:16 +08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
|
routes: routes
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|