This commit is contained in:
chenjinsong
2021-06-07 18:35:16 +08:00
parent c68ac91e2d
commit 13329e8f85
27 changed files with 3064 additions and 448 deletions

34
src/router/index.js Normal file
View File

@@ -0,0 +1,34 @@
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