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

[vue] 在什么场景下会用到嵌套路由? #380

Open
haizhilin2013 opened this issue Jun 20, 2019 · 5 comments
Open

[vue] 在什么场景下会用到嵌套路由? #380

haizhilin2013 opened this issue Jun 20, 2019 · 5 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] 在什么场景下会用到嵌套路由?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 20, 2019
@XSJXSJ111
Copy link

举个例子,例如做个管理系统,顶部栏和左侧菜单栏是全局通用的,那就应该放在父路由,而右下的页面内容部分放在子路由

@liuxiaoyang1
Copy link

eg:比如楼上说的:管理系统,当头部和左侧作为全局使用的时候,他的每个选项都是仅仅作为路由的跳转,然后在routes[{path:'/'},children[{paht:'chilld'}]]来配置子路由

@WenJieLi1998
Copy link

在页面点击不同的选项卡切换不同的路由来展示不同的内容时

@Funqiewei
Copy link

Funqiewei commented Mar 10, 2022

类似在当页面有全局通用tabbar标签栏中仅是作为路由转跳 通过配置 children子路由

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

No branches or pull requests

6 participants