vueComponent / pro-components

easy use `Ant Design Vue` layout
MIT License
535 stars 214 forks source link

菜单显示隐藏[Question] Help #239

Open shanhe2017 opened 2 years ago

shanhe2017 commented 2 years ago

🧐 问题描述 Problem Description

并非所有路由都要展示为菜单,如何配置?在路由中配置hideInMenu没有生效

sendya commented 2 years ago

哪个版本, 路由配置能贴来看一下吗

andrewgreat commented 1 year ago

我也碰到同样的问题, @ant-design-vue/pro-layout 3.2.3 在动态生成路由中hideInMenu 和hideChildrenInMenu 都不生效: // 是否设置了隐藏菜单 if (show === false) { currentRouter.hideInMenu = true } // 是否设置了隐藏子菜单 if (hideChildren) { currentRouter.hideChildrenInMenu = true }