Skip to content
New issue

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

嵌套路由的动态参数每次刷新都进入第一个嵌套路由中? #3075

Closed
XBC-BigSun opened this issue Dec 23, 2019 · 1 comment
Closed

Comments

@XBC-BigSun
Copy link

@XBC-BigSun XBC-BigSun commented Dec 23, 2019

{
path: '/catalog',
components: {
default: catalog,
jd_header: jd_header,
jd_footer: jd_footer
},
name: 'catalog',
children: [{
path: 'home',
component: home,
name: 'home',
},
{
path: 'organization',
component: organization,
name: 'organization',
children: [{
path: ':catalogId',
component: jd_list,
name: 'jd_list_zzjg',
},
{
path: ':articleId',
component: jd_indoorDetial,
name: 'jd_indoorDetial_zzjg',
}
]
}]
每次通过this.$router.push()是可以跳转到响应的路由中,但是如果刷新,就会默认跳转到jd_list_zzjg无论我希不希望它跳转到jd_list_zzjg中,都会跳转到,organization的第一个嵌套路由中

@vue-bot

This comment has been minimized.

Copy link

@vue-bot vue-bot commented Dec 23, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.