|
@@ -129,10 +129,26 @@ export default {
|
|
|
'data.property': {
|
|
|
handler({ view_pinyin }) {
|
|
|
if (!this.isEnable(view_pinyin)) {
|
|
|
- this.data.paragraph_list = [];
|
|
|
+ this.data.model_essay.forEach((item, i) => {
|
|
|
+ item.forEach((option) => {
|
|
|
+ option.paragraph_list = [];
|
|
|
+ option.paragraph_list_parameter = {
|
|
|
+ text: '',
|
|
|
+ pinyin_proofread_word_list: [],
|
|
|
+ };
|
|
|
+ });
|
|
|
+ });
|
|
|
return;
|
|
|
}
|
|
|
- if (this.data.paragraph_list.length > 0) return;
|
|
|
+
|
|
|
+ if (
|
|
|
+ this.data.model_essay.length > 0 &&
|
|
|
+ this.data.model_essay[0].length > 0 &&
|
|
|
+ this.data.model_essay[0][0].paragraph_list.length > 0
|
|
|
+ ) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.data.model_essay.forEach((item, i) => {
|
|
|
item.forEach((option, j) => {
|
|
|
const text = option.content.replace(/<[^>]+>/g, '');
|