|
@@ -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) {
|