Browse Source

Merge branch 'NPC-lhd'

natasha 2 years ago
parent
commit
eceedb6606
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/components/Adult/inputModules/DialogueAnswerChs/index.vue

+ 8 - 3
src/components/Adult/inputModules/DialogueAnswerChs/index.vue

@@ -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() {}, //生命周期 - 更新之前