diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 4b2c1d45574f66eac47c640064894fd680054c7c..e08785f2573b0397c63fc0ac62e62477a3faf613 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -175,8 +175,9 @@ class BasicLayout extends React.PureComponent { }; getLayoutStyle = () => { + const { isMobile } = this.state; const { fixSiderbar, collapsed, layout } = this.props; - if (fixSiderbar && layout !== 'topmenu') { + if (fixSiderbar && layout !== 'topmenu' && !isMobile) { return { paddingLeft: collapsed ? '80px' : '256px', };