We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export default new Router({ routes: [ { path: '/', redirect: '/index' }, { path: '/index', component: index, children: [ { path: '', name: 'home', component: home }, { path: 'page1', name: 'page1', component: page1 }, { path: 'page2', component: page2, children: [ { path: '', name: 'setting', component: setting }, { path: 'page3', name: 'page3', component: page3 } ] } ] } ] })
进入page2的子路由,动画明显和其他不一样
The text was updated successfully, but these errors were encountered:
如果你子路由没有用PageTransition包裹,是不会有动画的,你可以这样写
routes: [ { path: '/', name: 'PageTransition', component: PageTransition, children: [{ path: '', component: Index }, { path: '/pageA', component: PageTransition, // 这里对pageA的子路由做一层包裹 children: [ { path: '', component: PageA }, { path: 'pageC', component: PageC } ] }, { path: '/pageB', component: PageB }] } ]
Sorry, something went wrong.
No branches or pull requests
export default new Router({
routes: [
{
path: '/',
redirect: '/index'
},
{
path: '/index',
component: index,
children: [
{
path: '',
name: 'home',
component: home
},
{
path: 'page1',
name: 'page1',
component: page1
},
{
path: 'page2',
component: page2,
children: [
{
path: '',
name: 'setting',
component: setting
},
{
path: 'page3',
name: 'page3',
component: page3
}
]
}
]
}
]
})
进入page2的子路由,动画明显和其他不一样
The text was updated successfully, but these errors were encountered: