数据格式
[
{
"title": "首页",
"icon": "home",
"path": "/home"
},
{
"title": "商品",
"icon": "home",
"path": "/catalogProduct",
"children": [
{
"title": "品类管理",
"icon": "home",
"path": "/catalog"
},
{
"title": "商品管理",
"icon": "home",
"path": "/product"
}
]
},
{
"title": "用户管理",
"icon": "user",
"path": "/user"
},
{
"title": "角色管理",
"icon": "role",
"path": "/role"
},
{
"title": "图形图标",
react的antd左侧菜单及刷新选中状态
最新推荐文章于 2024-08-05 23:30:12 发布
本文详细介绍了如何在React应用中使用Ant Design库创建左侧菜单,并在页面刷新后保持菜单选中状态。通过利用React的状态管理和Antd的Menu组件特性,实现动态设置菜单高亮。
摘要由CSDN通过智能技术生成