mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-17 13:49:43 +08:00
fix: body 显示不完整bug
This commit is contained in:
parent
bef9c420b4
commit
e5aca5e0d1
@ -45,7 +45,7 @@ const CaseReport = function (props) {
|
||||
{props.body ?
|
||||
<Row className="case-report">
|
||||
<Col className="case-report-title" span="6">Body</Col>
|
||||
<Col span="18"><pre>{body}</pre></Col>
|
||||
<Col span="18"><pre style={{whiteSpace: 'pre-wrap'}}>{body}</pre></Col>
|
||||
</Row>
|
||||
: null
|
||||
}
|
||||
|
@ -156,6 +156,7 @@ class InterfaceColContent extends Component {
|
||||
result = e;
|
||||
}
|
||||
|
||||
result.body = result.data;
|
||||
this.reports[curitem._id] = result;
|
||||
this.records[curitem._id] = {
|
||||
params: result.params,
|
||||
|
@ -91,6 +91,10 @@
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
pre{
|
||||
white-space: pre-wrap
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user