This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/router/index.js

67 lines
1.5 KiB
JavaScript
Raw Normal View History

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-07-15 19:21:53 +08:00
path: '/role',
component: () => import('@/views/settings/Roles')
},
2021-07-21 10:03:21 +08:00
{
path: '/i18n',
component: () => import('@/views/settings/I18n')
},
{
path: '/operationLog',
component: () => import('@/views/settings/OperationLog')
},
{
path: '/entityExplorer',
component: () => import('@/views/entityExplorer/EntityExplorer')
2021-09-02 17:12:27 +08:00
},
2022-02-14 22:22:31 +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')
},
{
path: '/chart',
component: () => import('@/views/settings/Chart')
}/* ,
{
path: '/temp',
component: () => import('@/views/Temp')
} */
2021-06-07 18:35:16 +08:00
]
}
]
const router = createRouter({
history: createWebHashHistory(),
routes: routes
})
export default router