|
@@ -103,7 +103,13 @@ class ReportDetail extends Component {
|
|
|
const chaplist = this.state.data.chapters
|
|
|
chaplist.forEach(function (item, index) {
|
|
|
if (index == i) {
|
|
|
- item.content = res
|
|
|
+ const paragraphs = res.split('\n').map((paragraph) =>
|
|
|
+ !!paragraph
|
|
|
+ ? `<p>${paragraph.trim()}</p>`
|
|
|
+ : `\n`
|
|
|
+ );
|
|
|
+ item.content = paragraphs.join('');
|
|
|
+ // item.content = res
|
|
|
}
|
|
|
})
|
|
|
this.setState({
|
|
@@ -741,7 +747,7 @@ class ReportDetail extends Component {
|
|
|
{this.state.popup &&
|
|
|
<View className='mask'>
|
|
|
<View className='count'>
|
|
|
- <View className='title' style={{ margin: "60px 0" }}>确认删除吗?</View>
|
|
|
+ <View className='title' style={{ margin: "60px 0" }}>确认删除该章节吗?</View>
|
|
|
<View className='count_foot'>
|
|
|
<Button onClick={this.toggleVisible}>取消</Button>
|
|
|
<Button style={{ marginTop: 0 }}
|