|
@@ -562,7 +562,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ },
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
const _this = this;
|
|
@@ -586,15 +587,17 @@ export default {
|
|
|
let curQue = JSON.parse(JSON.stringify(this.cur));
|
|
|
curQue.detailList.forEach((dItem, dIndex) => {
|
|
|
let paraArr = [];
|
|
|
- dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
- let obj = {
|
|
|
- pinyin: sItem.pinyin,
|
|
|
- chs: sItem.chs,
|
|
|
- isShow: true,
|
|
|
- };
|
|
|
- paraArr.push(obj);
|
|
|
- });
|
|
|
- this.$set(_this.cur.detailList[dIndex].detail, "resArr", paraArr);
|
|
|
+ if(dItem.detail){
|
|
|
+ dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
+ let obj = {
|
|
|
+ pinyin: sItem.pinyin,
|
|
|
+ chs: sItem.chs,
|
|
|
+ isShow: true,
|
|
|
+ };
|
|
|
+ paraArr.push(obj);
|
|
|
+ });
|
|
|
+ this.$set(_this.cur.detailList[dIndex].detail, "resArr", paraArr);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
initContextData() {
|