|
|
@@ -348,6 +348,9 @@ export default {
|
|
|
'data.content': {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
+ this.showPhrases = false;
|
|
|
+ this.showPractice = false;
|
|
|
+ this.showWord = false;
|
|
|
this.handleData();
|
|
|
let _this = this;
|
|
|
if (!this.isJudgingRightWrong) {
|
|
|
@@ -629,6 +632,7 @@ export default {
|
|
|
: [],
|
|
|
);
|
|
|
this.NNPEAnnotationList = this.data.notes_list && this.data.notes_list.option ? this.data.notes_list.option : [];
|
|
|
+ this.handleNewword();
|
|
|
let resArr = [];
|
|
|
let sentArrTotal = [];
|
|
|
let timeArr = [];
|
|
|
@@ -739,7 +743,7 @@ export default {
|
|
|
words = wItem.chs;
|
|
|
endIndex = startIndex + 1;
|
|
|
}
|
|
|
- } else if (item[0] === wItem.chs && sentence.indexOf(item) > -1) {
|
|
|
+ } else if (item.substring(0, wItem.chs.length) === wItem.chs && sentence.indexOf(item) > -1) {
|
|
|
let index = null;
|
|
|
let chsStr = '';
|
|
|
for (let i = startIndex; i < sItem.length + 1; i++) {
|