Skip to content

Bug: 双列菜单MenuBadge问题 #6936

@liangsongjin

Description

@liangsongjin

Version

Vben Admin V5

Describe the bug?

布局双列菜单模式,当前路由有badge刷新初始化不会展示,后面动态更新badge也不会变,需要点击一下菜单才展示
目前我在packages/effects/layouts/src/basic/menu/use-extra-menu.ts中的handleDefaultSelect中调整为: extraMenus.value = extraRootMenus.value ?? rootMenu?.children ?? [];才避免这个问题

Reproduction

可以在playground中http://localhost:5555/demos/badge/text这个页面复现bug

System Info

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions