|
@@ -64,15 +64,17 @@ export default {
|
|
|
let curQue = JSON.parse(JSON.stringify(this.curQue));
|
|
|
curQue.option.forEach((dItem, dIndex) => {
|
|
|
let paraArr = []
|
|
|
- dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
- this.mergeWordSymbol(dItem.detail.wordsList, sItem, sIndex);
|
|
|
- let obj = {
|
|
|
- pinyin: sItem.pinyin,
|
|
|
- chs: sItem.chs,
|
|
|
- isShow: sItem.isShow,
|
|
|
- };
|
|
|
- paraArr.push(obj);
|
|
|
- })
|
|
|
+ if(dItem.detail){
|
|
|
+ dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
+ this.mergeWordSymbol(dItem.detail.wordsList, sItem, sIndex);
|
|
|
+ let obj = {
|
|
|
+ pinyin: sItem.pinyin,
|
|
|
+ chs: sItem.chs,
|
|
|
+ isShow: sItem.isShow,
|
|
|
+ };
|
|
|
+ paraArr.push(obj);
|
|
|
+ })
|
|
|
+ }
|
|
|
this.$set(_this.curQue.option[dIndex].detail,'resArr',paraArr)
|
|
|
})
|
|
|
},
|