【发布时间】:2019-05-28 07:33:09
【问题描述】:
是否可以创建多于 2 个的嵌套路由?
我想创建这样的东西:
+--------------------+
| User |
| +----------------+ |
| | Profile | |
| | +------------+ | |
| | | About | | |
| | | +--------+ | | |
| | | | Detail | | | |
| | | +--------+ | | |
| | +------------+ | |
| +----------------+ |
+--------------------+
所以在网络上会是这样的
链接:/localhost/user
网页展示:
USER
链接:localhost/user/profile
网页展示:
USER
PROFILE
链接:localhost/user/profile/about
网页展示:
USER
PROFILE
ABOUT
链接:localhost/user/profile/about/detail
网页展示:
USER
PROFILE
ABOUT
DETAIL
非常感谢任何带有 jsfiddle 的示例代码,谢谢。
【问题讨论】:
标签: javascript vue.js vuejs2 vue-component vue-router