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

FEATURE: 菜单badge数字动态修改功能 #5151

Closed
3 tasks done
xjchen-ysh opened this issue Dec 16, 2024 · 1 comment
Closed
3 tasks done

FEATURE: 菜单badge数字动态修改功能 #5151

xjchen-ysh opened this issue Dec 16, 2024 · 1 comment

Comments

@xjchen-ysh
Copy link

Version

Vben Admin V5

Description

提供一个utils,允许系统通过 http协议|socket 从后台获取到badge,无感刷新到左侧菜单栏上

Proposed Solution

packages@core\ui-kit\menu-ui\src\sub-menu.vue
考虑在以上文件中对badge进行computed处理,增加一个全局的store,以route的 name|path 作为key,当store中的值存在时,优先返回store中的badge值,否则以route文件中的配置为准
image

Alternatives Considered

No response

Additional Context

No response

Validations

  • Read the docs
  • Ensure the code is up to date. (Some issues have been fixed in the latest version)
  • I have searched the existing issues and checked that my issue does not duplicate any existing issues.
@mynetfan
Copy link
Collaborator

via 0f75650

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants