Thanks to visit codestin.com
Credit goes to github.com

Skip to content

自定义layout组件,props里拿不到config的routes,没办法自己实现菜单的渲染? #10177

@Cooper1886

Description

@Cooper1886

Background

项目中需要多个layout布局

Proposal

项目中有多种layout的需求,那么就需要自定义layout组件,在layout组件内自己实现头部,菜单,底部。现在的问题在于layout组件的props是空的拿不到config的routes,这种情况下如何拿到routes并实现菜单的渲染呢?

Additional context

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions