You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
492 B
21 lines
492 B
import { Button, Result } from 'antd';
|
|
import React from 'react';
|
|
import { router } from 'umi';
|
|
|
|
// 这里应该使用 antd 的 404 result 组件,
|
|
// 但是还没发布,先来个简单的。
|
|
|
|
const NoFoundPage: React.FC<{}> = () => (
|
|
<Result
|
|
status="404"
|
|
title="404"
|
|
subTitle="Sorry, the page you visited does not exist."
|
|
extra={
|
|
<Button type="primary" onClick={() => router.push('/')}>
|
|
Back Home
|
|
</Button>
|
|
}
|
|
/>
|
|
);
|
|
|
|
export default NoFoundPage;
|
|
|