From c647b001c0c5b1001fc2f7e825fb1f40779f2fd9 Mon Sep 17 00:00:00 2001 From: Leskur <33910980+Leskur@users.noreply.github.com> Date: Mon, 10 Feb 2020 09:36:43 +0800 Subject: [PATCH] bugfix: fix SecurityLayout error (ant-design#5640) (#5956) --- src/components/GlobalHeader/RightContent.tsx | 8 ++------ src/layouts/SecurityLayout.tsx | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/GlobalHeader/RightContent.tsx b/src/components/GlobalHeader/RightContent.tsx index 7da29bd2..5a5882cc 100644 --- a/src/components/GlobalHeader/RightContent.tsx +++ b/src/components/GlobalHeader/RightContent.tsx @@ -48,12 +48,8 @@ const GlobalHeaderRight: React.SFC = props => { id: 'component.globalHeader.search.example3', }), ]} - onSearch={value => { - console.log('input', value); - }} - onPressEnter={value => { - console.log('enter', value); - }} + onSearch={() => {}} + onPressEnter={() => {}} /> ; } - if (!isLogin) { + if (!isLogin && window.location.pathname !== '/user/login') { return ; } return children;