添加首页导航栏
This commit is contained in:
+15
-11
@@ -5,17 +5,21 @@ const router = createRouter({
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/rainstorm',
|
||||
},
|
||||
{
|
||||
path: '/rainstorm',
|
||||
name: 'rainstorm',
|
||||
component: () => import('@/views/home/rainstorm/Rainstorm.vue'),
|
||||
},
|
||||
{
|
||||
path: '/earthquake',
|
||||
name: 'earthquake',
|
||||
component: () => import('@/views/home/earthquake/Earthquake.vue'),
|
||||
name: 'index',
|
||||
component: () => import('@/views/Index.vue'),
|
||||
redirect: 'rainstorm',
|
||||
children: [
|
||||
{
|
||||
path: 'rainstorm',
|
||||
name: 'rainstorm',
|
||||
component: () => import('@/views/home/rainstorm/Rainstorm.vue'),
|
||||
},
|
||||
{
|
||||
path: 'earthquake',
|
||||
name: 'earthquake',
|
||||
component: () => import('@/views/home/earthquake/Earthquake.vue'),
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user