刘洋 1 year ago
parent
commit
b8c6322a7b

+ 1 - 0
src/features/OnlineExam/Examing/setups/useCheckMultipleAnswer.ts

@@ -17,6 +17,7 @@ export function useCheckMultipleAnswer() {
       positiveText: "跳过此题",
       negativeText: "继续作答",
       onPositiveClick: callback,
+      maskClosable: false,
     });
   };
   return {

+ 1 - 1
src/features/OnlineExam/Examing/setups/useSubmitPaper.tsx

@@ -55,7 +55,7 @@ export function useRealSubmitPaper(
       (q) => q.isStarred
     ).length;
     const hasMultipleChoiceHalfAnswer = store.exam.examQuestionList.some(item=>{
-      return item.questionType==='MULTIPLE_CHOICE' && typeof(item.studentAnswer)==='string' && item.studentAnswer.length==1
+      return item.questionType==='MULTIPLE_CHOICE' && ((typeof(item.studentAnswer)==='string' && item.studentAnswer.length<2) || !item.studentAnswer)
     })
     $dialog.info({
       title: "确认交卷",