From aee80d1d7598c16d1284050267ae576a2ed5c7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sat, 9 Jun 2018 23:02:01 +0800 Subject: [PATCH] add layout==="topmenu" judgment --- src/layouts/BasicLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 20174c4e..02d3edd5 100644 --- a/src/layouts/BasicLayout.js +++ b/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', }; -- GitLab