Parcourir la source

排序题重置bookanswer 句子填空重置答案

natasha il y a 1 an
Parent
commit
55e962edeb

+ 5 - 0
src/components/Adult/inputModules/Sentence.vue

@@ -548,6 +548,11 @@ export default {
         this.curQue.name = "读汉字写拼音"
       }else if(this.type=='sentence_input_chs'){
         this.curQue.name = "句子模板-句子填空"
+        this.curQue.option.forEach(item=>{
+            if(item.answer.length===0){
+                item.answer = ['']
+            }
+        })
       }else if(this.type=='sentence_judge_chs'){
         this.curQue.name = "句子模板-句子判断"
       }else if(this.type=='sentence_record_chs'){

+ 4 - 0
src/components/Adult/inputModules/Sort.vue

@@ -191,6 +191,10 @@ export default {
   created() {
     if (!this.curQue) {
       this.changeCurQue(this.data_structure);
+    }else{
+        if(this.curQue.hasOwnProperty("Bookanswer")){
+            this.curQue.Bookanswer = null
+        }
     }
   },
   //生命周期 - 挂载完成(可以访问DOM元素)