mjh 5 лет назад
Родитель
Сommit
f9d0455f92
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      src/components/QuestionCreator/SingleQuestionCreator.vue

+ 10 - 0
src/components/QuestionCreator/SingleQuestionCreator.vue

@@ -96,6 +96,13 @@ export default {
   methods: {
     //
     init() {
+      this.questionType = ""
+      this.questionStem = ""
+      for (let questionOptionsKey in this.questionOptions) {
+        this.questionOptions[questionOptionsKey] = ""
+      }
+      this.questionAnswer = ""
+      this.questionAnalysis = ""
     },
 
     //
@@ -170,6 +177,9 @@ export default {
         createdTime: null
       }
       // todo 调用后端
+
+      // init
+      this.init()
     }
   },
   computed: {