-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] 在什么场景下会用到嵌套路由? #380
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
Labels
vue
vue
Comments
举个例子,例如做个管理系统,顶部栏和左侧菜单栏是全局通用的,那就应该放在父路由,而右下的页面内容部分放在子路由 |
eg:比如楼上说的:管理系统,当头部和左侧作为全局使用的时候,他的每个选项都是仅仅作为路由的跳转,然后在routes[{path:'/'},children[{paht:'chilld'}]]来配置子路由 |
在页面点击不同的选项卡切换不同的路由来展示不同的内容时 |
类似在当页面有全局通用tabbar标签栏中仅是作为路由转跳 通过配置 children子路由 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] 在什么场景下会用到嵌套路由?
The text was updated successfully, but these errors were encountered: