feat:鲁迅添加引导

This commit is contained in:
zhongyidian committed 2026-01-08 18:41:24 +08:00
1 parent e8dc5d4b95
commit 3129e01257
26 files changed
+951 -86

No files matched your search

+6 -2
View File
@@ -30,6 +30,7 @@ type QuizAnchor = {
prompt: string;
type: "single" | "multiple";
options: QuizOption[];
explanation?: string;
};
const starName = "luxun";
@@ -62,9 +63,10 @@ const QUIZ_ANCHORS: QuizAnchor[] = [
{
value: "D",
label: "让青年都去参军",
explanation: "鲁迅先生还是在文学和思想领域培养青年一代,传递思想的火苗",
},
],
explanation:
"虽然鲁迅热爱革命,但他主要通过文学社团、木刻艺术和纪念文章来教育和启发青年,而不是通过参军来培养青年。",
},
{
id: "quiz-3",
@@ -189,7 +191,9 @@ const LuxunInternalization = () => {
label: `${opt.value}. ${opt.label}`,
}))}
correctAnswer={correctAnswers}
errorMessage="再思考一下,注意选择所有正确答案。"
errorMessage={
item.explanation || "再思考一下,注意选择所有正确答案。"
}
onSubmit={(values: string[], isCorrect: boolean) => {
if (isCorrect) {
setActiveSuccess(item.id);