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
2022-03-17 17:56:38 +08:00

67 lines
1.5 KiB
JavaScript

import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
{ path: '/', redirect: '/login' },
{
path: '/login',
component: () => import('@/Login')
},
{
path: '/entityDetail',
component: () => import('@/views/entityExplorer/EntityDetail')
},
{
path: '/',
component: () => import('@/components/layout/Home'),
children: [
{
path: '/panel/:typeName',
component: () => import('@/views/charts/Panel')
},
{
path: '/user',
component: () => import('@/views/settings/User')
},
{
path: '/role',
component: () => import('@/views/settings/Roles')
},
{
path: '/i18n',
component: () => import('@/views/settings/I18n')
},
{
path: '/operationLog',
component: () => import('@/views/settings/OperationLog')
},
{
path: '/entityExplorer',
component: () => import('@/views/entityExplorer/EntityExplorer')
},
{
path: '/detection/:typeName',
component: () => import('@/views/detections/Index')
},
{
path: '/galaxyProxy',
component: () => import('@/views/settings/GalaxyProxy')
},
{
path: '/chart',
component: () => import('@/views/settings/Chart')
},
{
path: '/temp',
component: () => import('@/views/Temp')
}
]
}
]
const router = createRouter({
history: createWebHashHistory(),
routes: routes
})
export default router