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

35 lines
726 B
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')
},
{
path: '/',
component: () => import('@/components/layout/Home'),
children: [
{
path: '/traffic',
component: () => import('@/views/dashboards/TrafficSummary')
},
{
path: '/na',
component: () => import('@/views/dashboards/TrafficSummary')
},
{
path: '/dns',
component: () => import('@/views/dashboards/TrafficSummary')
}
]
}
]
const router = createRouter({
history: createWebHashHistory(),
routes: routes
})
export default router