瀏覽代碼

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

natasha 1 年之前
父節點
當前提交
55e962edeb
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 5 0
      src/components/Adult/inputModules/Sentence.vue
  2. 4 0
      src/components/Adult/inputModules/Sort.vue

+ 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元素)