未验证 提交 f715d9f7 编写于 作者: 陈帅 提交者: GitHub

use antd Result (#4682)

* use antd Result

* up antd 3.20.0
上级 e14b1311
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"dependencies": { "dependencies": {
"@ant-design/pro-layout": "^4.5.7", "@ant-design/pro-layout": "^4.5.7",
"@antv/data-set": "^0.10.2", "@antv/data-set": "^0.10.2",
"antd": "^3.19.1", "antd": "^3.20.0",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"dva": "^2.4.1", "dva": "^2.4.1",
"lodash": "^4.17.11", "lodash": "^4.17.11",
......
import { Button } from 'antd'; import { Button, Result } from 'antd';
import React from 'react'; import React from 'react';
import router from 'umi/router'; import router from 'umi/router';
...@@ -6,22 +6,16 @@ import router from 'umi/router'; ...@@ -6,22 +6,16 @@ import router from 'umi/router';
// 但是还没发布,先来个简单的。 // 但是还没发布,先来个简单的。
const NoFoundPage: React.FC<{}> = () => ( const NoFoundPage: React.FC<{}> = () => (
<div <Result
style={{ status="404"
height: '100vh', title="404"
padding: 80, subTitle="Sorry, the page you visited does not exist."
textAlign: 'center', extra={
}} <Button type="primary" onClick={() => router.push('/')}>
> Back Home
<img src="https://gw.alipayobjects.com/zos/antfincdn/wsE2Pw%243%26L/noFound.svg" alt="404" /> </Button>
<br /> }
<br /> ></Result>
<h1>404</h1>
<p>Sorry, the page you visited does not exist.</p>
<Button type="primary" onClick={() => router.push('/')}>
Back Home
</Button>
</div>
); );
export default NoFoundPage; export default NoFoundPage;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册