feat(教程): 改练一练时可以顺手清空学生的作答——改了答案,按旧答案做对的人不再算做对
Deploy / deploy (push) Canceled after 0s

练一练是原地改的,作答记录跟着题走:改了答案或选项,按旧答案做对的人仍然显示做对、
「最后错在 选了 B」说的也是旧选项。编辑框底下多一个「同时清空学生的作答(N 人做过)」,
没人做过时不出现;勾上保存,学生那边这道题回到没做。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-16 12:28:47 +08:00
1 parent 1ebb23cdac
commit a814776fb9
4 files changed
+79 -22

No files matched your search

+2
View File
@@ -521,11 +521,13 @@ export async function updateExercise(data: {
type: ExerciseType
data: object
order: number
resetAttempts: boolean
}) {
return api.put<Exercise>(`admin/exercises/${data.id}`, {
type: data.type,
data: data.data,
order: data.order,
resetAttempts: data.resetAttempts,
})
}