Leskur
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
7 deletions
-
src/components/GlobalHeader/RightContent.tsx
-
src/layouts/SecurityLayout.tsx
|
|
|
@ -48,12 +48,8 @@ const GlobalHeaderRight: React.SFC<GlobalHeaderRightProps> = props => { |
|
|
|
id: 'component.globalHeader.search.example3', |
|
|
|
}), |
|
|
|
]} |
|
|
|
onSearch={value => { |
|
|
|
console.log('input', value); |
|
|
|
}} |
|
|
|
onPressEnter={value => { |
|
|
|
console.log('enter', value); |
|
|
|
}} |
|
|
|
onSearch={() => {}} |
|
|
|
onPressEnter={() => {}} |
|
|
|
/> |
|
|
|
<Tooltip |
|
|
|
title={formatMessage({ |
|
|
|
|
|
|
|
@ -45,7 +45,7 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout |
|
|
|
if ((!isLogin && loading) || !isReady) { |
|
|
|
return <PageLoading />; |
|
|
|
} |
|
|
|
if (!isLogin) { |
|
|
|
if (!isLogin && window.location.pathname !== '/user/login') { |
|
|
|
return <Redirect to={`/user/login?${queryString}`} />; |
|
|
|
} |
|
|
|
return children; |
|
|
|
|