Commit 1f63d13d authored by 陈帅's avatar 陈帅

Fix the problem that the menu is empty

parent b0567ad9
......@@ -224,6 +224,7 @@ class BasicLayout extends React.PureComponent {
} = this.props;
const { rendering, isMobile } = this.state;
const isTop = PropsLayout === 'topmenu';
const menuData = this.getMenuData();
const layout = (
<Layout>
{isTop && !isMobile ? null : (
......@@ -232,7 +233,7 @@ class BasicLayout extends React.PureComponent {
Authorized={Authorized}
theme={silderTheme}
onCollapse={this.handleMenuCollapse}
menuData={this.getMenuData()}
menuData={menuData}
{...this.props}
/>
)}
......@@ -242,7 +243,12 @@ class BasicLayout extends React.PureComponent {
minHeight: '100vh',
}}
>
<Header handleMenuCollapse={this.handleMenuCollapse} logo={logo} {...this.props} />
<Header
menuData={menuData}
handleMenuCollapse={this.handleMenuCollapse}
logo={logo}
{...this.props}
/>
<Content style={this.getContentStyle()}>{children}</Content>
<Footer />
</Layout>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment