diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index fa809c8af4dcf41d989ea3de04d1f54a4bfe6b3e..0e5753679f791485969d775d1463d66aecec2422 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -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 = ( {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', }} > -
+
{children}