From 1f63d13dd1fafec761e553eca6123fd5de1db1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 31 Aug 2018 18:59:11 +0800 Subject: [PATCH] Fix the problem that the menu is empty --- src/layouts/BasicLayout.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index fa809c8a..0e575367 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}