ソースを参照

fix type error

Michael Wang 3 年 前
コミット
a196d13a91
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/features/OnlinePractice/ExamPaperPreview.vue

+ 2 - 2
src/features/OnlinePractice/ExamPaperPreview.vue

@@ -165,7 +165,7 @@ function parseRightAnswer(
 }
 function parseStudentAnswer(
   questionType: string,
-  studentAnswer: string,
+  studentAnswer: string | null,
   optionPermutation: number[] | undefined
 ) {
   if (!studentAnswer) return "";
@@ -186,7 +186,7 @@ function parseStudentAnswer(
 }
 function equalAnswer(
   questionType: string,
-  studentAnswer: string,
+  studentAnswer: string | null,
   rightAnswer: string[] | undefined
 ) {
   if (!rightAnswer) return null;