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: 能否提供一个单级的layout组件 #5329

Open
3 tasks done
Rascal-Coder opened this issue Jan 8, 2025 · 1 comment
Open
3 tasks done

FEATURE: 能否提供一个单级的layout组件 #5329

Rascal-Coder opened this issue Jan 8, 2025 · 1 comment

Comments

@Rascal-Coder
Copy link

Version

Vben Admin V5

Description

image
image
我发现现在需要设置一个不需要分组的菜单,需要hideChildrenInMenu并且重定向,这样设计不是很合理感觉

Proposed Solution

我想要的是可以直接
{
component: () => TopLayout,
meta: {
icon: 'ion:layers-outline',
order: 100_000,
title: '测试',
},
path: '/test',
},
不需要多一层无意义的children并且去hideChildrenInMenu

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.
@Rascal-Coder
Copy link
Author

或者meta有一个isSingleLevelRoute来标识这个route,或者现在有可以优雅配置的方案我没有发现,但是文档中并没有显示出来

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