2021-06-07 18:35:16 +08:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{ path: '/', redirect: '/login' },
|
|
|
|
|
{
|
|
|
|
|
path: '/login',
|
|
|
|
|
component: () => import('@/Login')
|
|
|
|
|
},
|
2022-01-03 22:46:22 +08:00
|
|
|
{
|
|
|
|
|
path: '/entityDetail',
|
|
|
|
|
component: () => import('@/views/entityExplorer/EntityDetail')
|
|
|
|
|
},
|
2021-06-07 18:35:16 +08:00
|
|
|
{
|
|
|
|
|
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',
|
2022-06-01 16:33:54 +08:00
|
|
|
component: () => import('@/views/report/reportTest')
|
|
|
|
|
},
|
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-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
|
|
|
{
|
|
|
|
|
path: '/knowledgeBase/form',
|
|
|
|
|
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-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
|