Revert "perf(员工培训): 按人事要求在员工培训答题过程中不支持修复答案"

This reverts commit 49629aeb0f.
This commit is contained in:
runny committed 2026-07-14 15:42:10 +08:00
1 parent 49629aeb0f
commit ea9a96b2fb
2 files changed
+19 -17

No files matched your search

@@ -542,20 +542,16 @@ const handleStageCardClick = (stageKey: string) => {
:key="option.id"
type="button"
class="rounded-2xl border px-3.5 py-2 text-left text-sm leading-5 transition"
:disabled="workspace.answerLocked"
:aria-disabled="workspace.answerLocked"
:class="[
workspace.selectedOptionId === option.id
? workspace.answerLocked
? option.id === workspace.currentQuestion.answer
? 'cursor-not-allowed border-emerald-300 bg-emerald-50 text-emerald-700'
: 'cursor-not-allowed border-red-300 bg-red-50 text-red-700'
? 'border-emerald-300 bg-emerald-50 text-emerald-700'
: 'border-red-300 bg-red-50 text-red-700'
: 'border-brand-300 bg-brand-50 text-brand-700'
: workspace.answerLocked && option.id === workspace.currentQuestion.answer
? 'cursor-not-allowed border-emerald-300 bg-emerald-50 text-emerald-700'
: workspace.answerLocked
? 'cursor-not-allowed border-default bg-surface-soft text-muted'
: 'border-default bg-white text-secondary hover:border-brand-200 hover:bg-brand-50/40',
? 'border-emerald-300 bg-emerald-50 text-emerald-700'
: 'border-default bg-white text-secondary hover:border-brand-200 hover:bg-brand-50/40',
]"
@click="workspace.selectAnswer(option.id)"
>