mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 17:59:33 +08:00
336a6fba42
* Rephrase 500 error 'Server is wrong' is not a clear sentence for users. I propose to use 'Something went wrong' with 500. * Update demo.test.js.snap
29 lines
364 B
Markdown
29 lines
364 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 500
|
|
en-US: 500
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
服务器发生了错误。
|
|
|
|
## en-US
|
|
|
|
Something went wrong on server.
|
|
|
|
```jsx
|
|
import { Result, Button } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Result
|
|
status="500"
|
|
title="500"
|
|
subTitle="Sorry, something went wrong."
|
|
extra={<Button type="primary">Back Home</Button>}
|
|
/>,
|
|
mountNode,
|
|
);
|
|
```
|