mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
25 lines
595 B
JavaScript
25 lines
595 B
JavaScript
import React from 'react';
|
|
import { Link } from 'bisheng/router';
|
|
import * as utils from './utils';
|
|
|
|
export default function NotFound({ location }) {
|
|
return (
|
|
<div id="page-404">
|
|
<section>
|
|
<h1>404</h1>
|
|
<p>
|
|
你要找的页面不存在
|
|
<Link to={utils.getLocalizedPathname('/', utils.isZhCN(location.pathname))}>
|
|
返回首页
|
|
</Link>
|
|
</p>
|
|
</section>
|
|
<style
|
|
dangerouslySetInnerHTML={{
|
|
__html: '#react-content { height: 100%; background-color: #fff }',
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|