当前位置:网站首页>镶嵌路由:实现/home/news
镶嵌路由:实现/home/news
2022-04-22 07:44:00 【零点呀】
如:
const router = new VueRouter({
routes: [
{ path: ‘/user/:id’, component: User,
children: [
{
// 当 /user/:id/profile 匹配成功,
// UserProfile 会被渲染在 User 的 中
path: ‘profile’,
component: UserProfile
},
{
// 当 /user/:id/posts 匹配成功
// UserPosts 会被渲染在 User 的 中
path: ‘posts’,
component: UserPosts
}
]
}
]
})
具体详情:
点这里https://router.vuejs.org/zh/guide/essentials/nested-routes.html
版权声明
本文为[零点呀]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_48302334/article/details/116176630
边栏推荐
- 226. 翻转二叉树(Easy)
- 617. 合并二叉树(Easy)
- JMU enumeration weekday
- Mapbox设置官方地图语言为中文
- The domestic cloud security market has exceeded 10 billion yuan. What is the future development trend?
- Flutter judges network availability
- Seven crimes of hackers in social engineering -- hooking
- JS judge the element to the top and fix it
- cesium中实现楼层分解动画
- 面试题 04.03. 特定深度节点链表(Medium)
猜你喜欢
随机推荐
Dynamic memory management of C
kubernetes—实战入门
Shell command script
又来一个上三角数字三角形
The fluent modul class and JSON are converted to each other
Nacos Foundation (4): configure the external database of Nacos
MaterialApp
手把手教你实现RecyclerView的下拉刷新和上拉加载更多
Constructor and toString
客户端与服务器通信项目5:C语言实现ls命令
第1关:节点监听机制
shell脚本学习——实战案例
cesium 采集地形高度,采集模型高度 (异步方法,适合数据较多的时候)
第2关:子节点创建、列出、删除
第2关:ACL访问控制列表
Autumn recruitment job summary and sharing
shell学习笔记——shell对输出流的处理awk
The PS - EF query process PID in the shell script always returns an exception
CentOS MySQL installation
CentOS 安裝 MySQL







