Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shanhe2017 opened this issue Jul 27, 2022 · 2 comments
Open

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

shanhe2017 opened this issue Jul 27, 2022 · 2 comments
Labels
question Further information is requested

Comments

@shanhe2017
Copy link

🧐 问题描述 Problem Description

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

@shanhe2017 shanhe2017 added the question Further information is requested label Jul 27, 2022
@sendya
Copy link
Member

sendya commented Jul 28, 2022

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

@andrewgreat
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants