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

add layout==="topmenu" judgment

parent 904ca0ae
......@@ -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',
};
......
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