فهرست منبع

判断题显示AB

Michael Wang 3 سال پیش
والد
کامیت
1fdf327860
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/features/mark/MultiMediaMarkBody.vue

+ 3 - 3
src/features/mark/MultiMediaMarkBody.vue

@@ -46,7 +46,7 @@
             >{{ renderObjective(question.standardAnswer) }}
           </template>
           <template v-else>
-            <div class="tw-text-blue-600">考生答案:</div>
+            <div class="tw-text-blue-600">标准答案:</div>
             <div
               v-html="getDomByRichTextJSON(question.standardAnswer)?.innerHTML"
             />
@@ -200,9 +200,9 @@ watch(
 const indexToABCD = (index: number) => "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[index - 1];
 const renderObjective = (ans: any) => {
   if (typeof ans === "boolean") {
-    return ans ? "正确" : "错误";
+    return ans ? "A" : "B";
   } else if (Array.isArray(ans) && typeof ans[0] === "boolean") {
-    return ans[0] ? "正确" : "错误";
+    return ans[0] ? "A" : "B";
   } else if (Array.isArray(ans) && typeof ans[0] === "number") {
     return ans.map((v) => indexToABCD(v)).join("");
   } else if (Array.isArray(ans) && ans.length === 0) {