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

Bug: 路由中使用hideInMenu时,左侧菜单栏消失 #4112

Closed
aonoa opened this issue Aug 10, 2024 · 1 comment
Closed

Bug: 路由中使用hideInMenu时,左侧菜单栏消失 #4112

aonoa opened this issue Aug 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aonoa
Copy link
Contributor

aonoa commented Aug 10, 2024

Version

Vben Admin V5

Describe the bug?

路由信息
image

1.在“双列菜单”模式下
image
2.在“混合菜单”模式下
image

Reproduction

在路由中添加hideInMenu 属性

System Info

$ npx envinfo --system --npmPackages '{vue}' --binaries --browsers

  System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    Memory: 10.42 GB / 31.18 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.15.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.7.0 - /usr/local/bin/npm
    pnpm: 9.4.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 112.0.5615.165


### Relevant log output

_No response_

### Validations

- [X] Read the [docs](https://anncwb.github.io/vue-vben-admin-doc/)
- [X] Ensure the code is up to date. (Some issues have been fixed in the latest version)
- [X] I have searched the [existing issues](https://github.com/vbenjs/vue-vben-admin/issues) and checked that my issue does not duplicate any existing issues.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vbenjs/vue-vben-admin/discussions) or join our [Discord Chat Server](https://discord.gg/8GuAdwDhj6).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
@aonoa aonoa added bug: pending triage bug Something isn't working and removed bug: pending triage labels Aug 10, 2024
@mynetfan
Copy link
Collaborator

#4113 被合并之后,可以在使用了hideInMenu 的路由中设置 activePath 来指定需要高亮的菜单,以此解决次级菜单数据空白的问题

@anncwb anncwb closed this as completed in cdeadaf Aug 10, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants