陈帅
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
package.json
-
src/layouts/SecurityLayout.tsx
-
src/pages/404.tsx
|
|
@ -88,7 +88,7 @@ |
|
|
"@types/react": "^16.8.19", |
|
|
"@types/react": "^16.8.19", |
|
|
"@types/react-dom": "^16.8.4", |
|
|
"@types/react-dom": "^16.8.4", |
|
|
"@types/react-helmet": "^5.0.13", |
|
|
"@types/react-helmet": "^5.0.13", |
|
|
"@umijs/fabric": "2.0.0", |
|
|
"@umijs/fabric": "^2.0.2", |
|
|
"chalk": "^3.0.0", |
|
|
"chalk": "^3.0.0", |
|
|
"check-prettier": "^1.0.3", |
|
|
"check-prettier": "^1.0.3", |
|
|
"cross-env": "^7.0.0", |
|
|
"cross-env": "^7.0.0", |
|
|
|
|
|
@ -46,7 +46,7 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout |
|
|
return <PageLoading />; |
|
|
return <PageLoading />; |
|
|
} |
|
|
} |
|
|
if (!isLogin) { |
|
|
if (!isLogin) { |
|
|
return <Redirect to={`/user/login?${queryString}`}></Redirect>; |
|
|
return <Redirect to={`/user/login?${queryString}`} />; |
|
|
} |
|
|
} |
|
|
return children; |
|
|
return children; |
|
|
} |
|
|
} |
|
|
|
|
|
@ -15,7 +15,7 @@ const NoFoundPage: React.FC<{}> = () => ( |
|
|
Back Home |
|
|
Back Home |
|
|
</Button> |
|
|
</Button> |
|
|
} |
|
|
} |
|
|
></Result> |
|
|
/> |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
export default NoFoundPage; |
|
|
export default NoFoundPage; |
|
|
|