mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
@ -110,6 +110,39 @@ const routes: Array<RouteRecordRaw> = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/tabs-new/',
|
||||
component: () => import('@/views/Tabs.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
redirect: '/tabs-new/tab1'
|
||||
},
|
||||
{
|
||||
path: 'tab1',
|
||||
component: () => import('@/views/Tab1.vue'),
|
||||
},
|
||||
{
|
||||
path: 'tab1/child-one',
|
||||
component: () => import('@/views/Tab1ChildOne.vue')
|
||||
},
|
||||
{
|
||||
path: 'tab1/child-two',
|
||||
component: () => import('@/views/Tab1ChildTwo.vue')
|
||||
},
|
||||
{
|
||||
path: 'tab2',
|
||||
component: () => import('@/views/Tab2.vue')
|
||||
},
|
||||
{
|
||||
path: 'tab3',
|
||||
beforeEnter: (to, from, next) => {
|
||||
next({ path: '/tabs/tab1' });
|
||||
},
|
||||
component: () => import('@/views/Tab3.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/tabs-secondary/',
|
||||
component: () => import('@/views/TabsSecondary.vue'),
|
||||
|
Reference in New Issue
Block a user