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

use antd Result (#4682)

* use antd Result

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