Przeglądaj źródła

fix: 修正换页栈没有还原的问题
fix: 修正判断题提示缺少答案的问题

ChenYangfan 6 lat temu
rodzic
commit
ebc5978e3d

+ 1 - 0
src/components/PDF/PointerCanvas.vue

@@ -37,6 +37,7 @@ export default {
   watch: {
     currentPage () {
       this.rects = []
+      this.poped = []
       this.drawingRect = {}
       this.renderer()
     }

+ 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 {