场景:要配置批量el-menu-item,其中路径带动态参数:/app/:id/path
el-plus API

解决方案:
1. computed + index
1. computed + route + click
Tips:computed 是关键
本文介绍了一种在el-plus中批量配置el-menu-item的方法,特别是如何处理带有动态参数的路由路径,通过使用computed属性实现菜单项的动态生成与管理。
场景:要配置批量el-menu-item,其中路径带动态参数:/app/:id/path
el-plus API

解决方案:
1. computed + index
1. computed + route + click
Tips:computed 是关键
822
2474
732

被折叠的 条评论
为什么被折叠?