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

路由嵌套问题 #48

Open
EvansLH opened this issue Jul 20, 2018 · 1 comment
Open

路由嵌套问题 #48

EvansLH opened this issue Jul 20, 2018 · 1 comment

Comments

@EvansLH
Copy link

EvansLH commented Jul 20, 2018

路由嵌套子页面该如何配置?

image

需要带ID 传子页面,这个子页面在菜单栏是不需要显示的;目前我是多写了一层路由,
做了无用功;
image
其实理想状态应该和图二 一样的,但无奈 图二的方式无法实现,请问作者有没有更好的方式?
最终结果期待的是:/product/productId/info
流程大概就是列表进入详情页面;
如果作者有幸看到,可加我微信 :EvansHongZai1214

@pmg1989
Copy link
Owner

pmg1989 commented Jul 23, 2018

子路由的嵌套框架本身实现应该没问题,src/router.js里有示例,如果有问题,可能跟你的path:companyid/editinfo有影响,目前好像确实不支持:params使用,建议转化为 query 参数传递。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants