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: [
|
|
|
|
|
{
|
2021-06-11 23:00:33 +08:00
|
|
|
path: '/panel/:typeName',
|
|
|
|
|
component: () => import('@/views/charts/Panel')
|
2021-06-11 10:00:22 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/user',
|
|
|
|
|
component: () => import('@/views/settings/User')
|
2021-06-16 15:01:58 +08:00
|
|
|
},
|
|
|
|
|
{
|
2021-07-15 19:21:53 +08:00
|
|
|
path: '/role',
|
2021-06-16 15:01:58 +08:00
|
|
|
component: () => import('@/views/settings/Roles')
|
2021-06-17 16:56:50 +08:00
|
|
|
},
|
2021-07-21 10:03:21 +08:00
|
|
|
{
|
|
|
|
|
path: '/i18n',
|
|
|
|
|
component: () => import('@/views/settings/I18n')
|
|
|
|
|
},
|
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-06-17 16:56:50 +08:00
|
|
|
{
|
|
|
|
|
path: '/operationLog',
|
|
|
|
|
component: () => import('@/views/settings/OperationLog')
|
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
|
|
|
},
|
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')
|
|
|
|
|
},
|
2021-09-02 17:12:27 +08:00
|
|
|
{
|
|
|
|
|
path: '/galaxyProxy',
|
|
|
|
|
component: () => import('@/views/settings/GalaxyProxy')
|
2021-10-15 16:42:15 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/chart',
|
|
|
|
|
component: () => import('@/views/settings/Chart')
|
2022-03-22 11:02:22 +08:00
|
|
|
},
|
2022-03-17 17:56:38 +08:00
|
|
|
{
|
|
|
|
|
path: '/temp',
|
|
|
|
|
component: () => import('@/views/Temp')
|
2022-05-18 15:23:38 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/businessLog/viewer',
|
|
|
|
|
component: () => import('@/views/businessLog/Viewer')
|
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
|