diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 20174c4e8f9820dfe91227736cfe1530dea1adee..02d3edd5a3db0eae7ce4995675ce1a5fce7a2691 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -84,8 +84,8 @@ class BasicLayout extends React.PureComponent { return title; } getLayoutStyle = () => { - const { fixSiderbar, collapsed } = this.props; - if (fixSiderbar) { + const { fixSiderbar, collapsed, layout } = this.props; + if (fixSiderbar && layout !== 'topmenu') { return { paddingLeft: collapsed ? '80px' : '256px', };