当我在导航的每个选项卡上单击时,侧面导航栏会将仪表板,客户端,模块和通知作为选项卡。但是我想要的是,当我单击“模块”选项卡时,它应该显示2个称为“漏斗”和“测量”的子项,它们也可以像路由一样进行导航。
https://demos.creative-tim.com/argon-dashboard-react/#/admin/index
我在我的项目中使用上述插件
https://demos.creative-tim.com/argon-dashboard-react/#/admin/index
我在我的项目中使用上述插件 请解决我的问题,即在单击应导航的选项卡时具有子菜单项
var routes = [
{
path: "/Dashboard",
name: "Dashboard",
icon: "ni ni-tv-2 text-blue",
component: Dashboard,
layout: "/admin"
},
{
path: "/Clients",
name: "Clients",
icon: "ni ni-planet text-pink",
component: Clients,
layout: "/admin"
},
{
path: "Modules",
name: "Modules",
icon: "ni ni-vector text-orange",
component: Modules,
layout: "/admin",
},
{
path: "/Notifications",
name: "Notifications",
icon: "ni ni-bell-55 text-green",
component: Notifications,
layout: "/admin"
}
];
我想在单击还可以像路由一样导航的模块时显示2个子项目,称为“渠道和调查”。