|
@@ -67,7 +67,11 @@
|
|
|
>{{ show_sample_text ? '隐藏范文' : '查看范文' }}</span
|
|
|
></el-divider
|
|
|
>
|
|
|
- <div v-if="show_sample_text" class="article-content rich-text" v-html="sanitizeHTML(data.sample_text)"></div>
|
|
|
+ <div
|
|
|
+ v-if="show_sample_text"
|
|
|
+ class="article-content rich-text"
|
|
|
+ v-html="sanitizeHTML(this.show_sample_break)"
|
|
|
+ ></div>
|
|
|
</template>
|
|
|
|
|
|
<div v-if="isEnable(data.property.is_enable_analysis) && isShowRightAnswer" class="analysis">
|
|
@@ -95,6 +99,7 @@ export default {
|
|
|
pic_list: {},
|
|
|
active_index: 0,
|
|
|
show_preview: false,
|
|
|
+ show_sample_break: '',
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -125,6 +130,7 @@ export default {
|
|
|
};
|
|
|
this.answer.answer_list.push(obj);
|
|
|
}
|
|
|
+ this.show_sample_break = this.data.sample_text ? this.data.sample_text.replace(/#/g, '</p><p>') : '';
|
|
|
},
|
|
|
changeImg(index) {
|
|
|
this.active_index = index;
|
|
@@ -228,6 +234,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .article-content {
|
|
|
+ text-indent: 2em;
|
|
|
+ }
|
|
|
+
|
|
|
.write-input {
|
|
|
font-size: 16px;
|
|
|
}
|