fix: body 显示不完整bug

This commit is contained in:
suxiaoxin 2017-12-01 14:47:49 +08:00
parent bef9c420b4
commit e5aca5e0d1
3 changed files with 6 additions and 1 deletions

View File

@ -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
}

View File

@ -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,

View File

@ -91,6 +91,10 @@
text-align: right;
padding-right: 20px;
}
pre{
white-space: pre-wrap
}
}
}