Closed kkk360 closed 3 years ago
目前代码里应该没有加,但是你可以在路由配置文件里给路由加一个hidden属性,然后再 https://github.com/NLRX-WJC/react-antd-admin-template/blob/master/src/views/layout/Sider/Menu/index.jsx#L27 这里添加一下对hidden的判断,过滤掉hidden为true的路由即可
好的 谢谢您
------------------ 原始邮件 ------------------ 发件人: "NLRX-WJC/react-antd-admin-template" @.>; 发送时间: 2021年6月8日(星期二) 中午11:14 @.>; @.**@.>; 主题: Re: [NLRX-WJC/react-antd-admin-template] 你好 我想请问一下,怎么添加一个不在menu菜单上展示的子路由 (#19)
目前代码里应该没有加,但是你可以在路由配置文件里给路由加一个hidden属性,然后再 https://github.com/NLRX-WJC/react-antd-admin-template/blob/master/src/views/layout/Sider/Menu/index.jsx#L27 这里添加一下对hidden的判断,过滤掉hidden为true的路由即可
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
比如一个table中的一列 我点击查看详情 跳转到一个子路由, 但是这个子路由不需要在菜单中显示