Explorar el Código

add layout==="topmenu" judgment

陈帅 hace 7 años
padre
commit
aee80d1d75
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/layouts/BasicLayout.js

+ 2 - 2
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',
       };