diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 094d684c52ee855e3fcf57f6f85d8f418eb0ba38..103c73bba63345ed4164f5a0c19bc726e87bc6b4 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -176,6 +176,11 @@ class BasicLayout extends React.PureComponent { const noticeData = this.getNoticeData(); + // Don't show popup menu when it is been collapsed + const menuProps = collapsed ? {} : { + openKeys: this.state.openKeys, + }; + return ( @@ -198,7 +203,7 @@ class BasicLayout extends React.PureComponent {