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 { ...@@ -224,6 +224,7 @@ class BasicLayout extends React.PureComponent {
} = this.props; } = this.props;
const { rendering, isMobile } = this.state; const { rendering, isMobile } = this.state;
const isTop = PropsLayout === 'topmenu'; const isTop = PropsLayout === 'topmenu';
const menuData = this.getMenuData();
const layout = ( const layout = (
<Layout> <Layout>
{isTop && !isMobile ? null : ( {isTop && !isMobile ? null : (
...@@ -232,7 +233,7 @@ class BasicLayout extends React.PureComponent { ...@@ -232,7 +233,7 @@ class BasicLayout extends React.PureComponent {
Authorized={Authorized} Authorized={Authorized}
theme={silderTheme} theme={silderTheme}
onCollapse={this.handleMenuCollapse} onCollapse={this.handleMenuCollapse}
menuData={this.getMenuData()} menuData={menuData}
{...this.props} {...this.props}
/> />
)} )}
...@@ -242,7 +243,12 @@ class BasicLayout extends React.PureComponent { ...@@ -242,7 +243,12 @@ class BasicLayout extends React.PureComponent {
minHeight: '100vh', 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> <Content style={this.getContentStyle()}>{children}</Content>
<Footer /> <Footer />
</Layout> </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