2 Revize 088a981438 ... dd201260f7

Autor SHA1 Zpráva Datum
  ChenYangfan dd201260f7 Merge branch 'master' of http://47.100.18.120:3000/SEEC-HELPER/frontend před 6 roky
  ChenYangfan ebc5978e3d fix: 修正换页栈没有还原的问题 před 6 roky

+ 2 - 4
src/views/quiz/components/TrueFalseQuestionEditor.vue

@@ -62,17 +62,15 @@ export default {
       deep: true,
       immediate: true,
       handler (nextInitValue) {
-        this.value.answer = nextInitValue.answer
+        this.value.answer = nextInitValue.answer ?? true
       }
     }
   },
   methods: {
     handleSubmit () {
-      const { stem, answer, analysis } = this.value
+      const { stem, analysis } = this.value
       if (!stem) {
         this.$setErrorMessage('请输入题干')
-      } else if (!answer) {
-        this.$setErrorMessage('请选择答案')
       } else if (!analysis) {
         this.$setErrorMessage('请输入解析')
       } else {