Commit aee80d1d authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

add layout==="topmenu" judgment

parent 904ca0ae
...@@ -84,8 +84,8 @@ class BasicLayout extends React.PureComponent { ...@@ -84,8 +84,8 @@ class BasicLayout extends React.PureComponent {
return title; return title;
} }
getLayoutStyle = () => { getLayoutStyle = () => {
const { fixSiderbar, collapsed } = this.props; const { fixSiderbar, collapsed, layout } = this.props;
if (fixSiderbar) { if (fixSiderbar && layout !== 'topmenu') {
return { return {
paddingLeft: collapsed ? '80px' : '256px', paddingLeft: collapsed ? '80px' : '256px',
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment