提交 aee80d1d 编写于 作者: 陈帅

add layout==="topmenu" judgment

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册