From 87c142249c32b6ac11925c8c0091f430644cbf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=96=E4=BB=A3=E7=A0=81=E7=9A=84?= <515343908@qq.com> Date: Mon, 17 Sep 2018 00:08:51 +0800 Subject: [PATCH] Update index.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 算错了。。。。。 --- src/components/TopNavHeader/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TopNavHeader/index.js b/src/components/TopNavHeader/index.js index e20b17ef..9a8960a7 100644 --- a/src/components/TopNavHeader/index.js +++ b/src/components/TopNavHeader/index.js @@ -9,13 +9,13 @@ export default class TopNavHeader extends PureComponent { super(props); this.state = { - maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 26, + maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36, }; } static getDerivedStateFromProps(props) { return { - maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4, + maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36, }; } -- GitLab