|
@@ -260,9 +260,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created() {},
|
|
|
- //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted() {
|
|
|
+ created() {
|
|
|
if (this.curQue) {
|
|
|
if (this.curQue.detail && this.curQue.detail.length > 0) {
|
|
|
if (this.curQue.detail[0].para) {
|
|
@@ -279,10 +277,17 @@ export default {
|
|
|
item.checkList = ["input"];
|
|
|
item.judge = [];
|
|
|
});
|
|
|
+ if(!this.curQue.hasOwnProperty("wordcard")){
|
|
|
+ this.$set(this.curQue, "wordcard", JSON.parse(JSON.stringify(this.data_structure.wordcard)));
|
|
|
+ }
|
|
|
} else {
|
|
|
this.initCurQueData();
|
|
|
}
|
|
|
},
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted() {
|
|
|
+
|
|
|
+ },
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|