|
@@ -417,6 +417,9 @@ export default {
|
|
let result = res.data.result;
|
|
let result = res.data.result;
|
|
result.forEach((item, index) => {
|
|
result.forEach((item, index) => {
|
|
this.$set(this.curQue.detail[index], "sentences", item);
|
|
this.$set(this.curQue.detail[index], "sentences", item);
|
|
|
|
+ for (let i = 0; i < item.length; i++) {
|
|
|
|
+ this.curQue.detail[index].sentencesEn.push("");
|
|
|
|
+ }
|
|
});
|
|
});
|
|
this.isClause = true;
|
|
this.isClause = true;
|
|
});
|
|
});
|
|
@@ -591,6 +594,15 @@ export default {
|
|
this.fileCon.img_list = JSON.parse(JSON.stringify(this.curQue.img_list));
|
|
this.fileCon.img_list = JSON.parse(JSON.stringify(this.curQue.img_list));
|
|
let mp3_list = JSON.parse(JSON.stringify(this.curQue.mp3_list));
|
|
let mp3_list = JSON.parse(JSON.stringify(this.curQue.mp3_list));
|
|
this.fileCon.mp3_list = mp3_list.filter((item) => item.source !== "tts");
|
|
this.fileCon.mp3_list = mp3_list.filter((item) => item.source !== "tts");
|
|
|
|
+ if (!this.curQue.sentencesEn) {
|
|
|
|
+ this.curQue.sentencesEn = [];
|
|
|
|
+ this.curQue.detail.forEach(item=>{
|
|
|
|
+ item.sentencesEn = []
|
|
|
|
+ item.sentences.forEach(items=>{
|
|
|
|
+ item.sentencesEn.push("")
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.initCurQueData();
|
|
this.initCurQueData();
|
|
}
|
|
}
|