mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
31 lines
411 B
Markdown
31 lines
411 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 500
|
|
en-US: 500
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
服务器发生了错误。
|
|
|
|
## en-US
|
|
|
|
Something went wrong on server.
|
|
|
|
```tsx
|
|
import { Button, Result } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<Result
|
|
status="500"
|
|
title="500"
|
|
subTitle="Sorry, something went wrong."
|
|
extra={<Button type="primary">Back Home</Button>}
|
|
/>
|
|
);
|
|
|
|
export default App;
|
|
```
|