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: hideChildrenInMenu配合面包屑导航的层级模式有问题,导致在面包屑上路径显示不完整 #5341

Open
5 tasks done
RanMaoting opened this issue Jan 10, 2025 · 0 comments

Comments

@RanMaoting
Copy link

Version

Vben Admin V5

Describe the bug?

代码如图
image
正常效果应该是
image
但是实际效果是
image
中间添加hideChildrenInMenu的这一层被忽略掉了

Reproduction

直接使用playground下的层级导航,并修改路由如下即可复现

{
            name: 'BreadcrumbLevelDemo',
            path: '/demos/breadcrumb/level',
            meta: {
              hideChildrenInMenu: true,
              icon: 'lucide:navigation',
              title: $t('demos.breadcrumb.level'),
            },
            children: [
              {
                name: 'BreadcrumbLevelDetailDemo',
                path: '/demos/breadcrumb/level/detail',
                component: () =>
                  import('#/views/demos/breadcrumb/level-detail.vue'),
                meta: {
                  title: $t('demos.breadcrumb.levelDetail'),
                },
              },
              {
                name: 'BreadcrumbLevelDetailDemo1',
                path: '/demos/breadcrumb/level/detail1',
                component: () =>
                  import('#/views/demos/breadcrumb/level-detail.vue'),
                meta: {
                  title: '123',
                },
              },
            ],
          },

System Info

/

Relevant log output

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant