From 0ca1a142a461927545281537df306422bfa767bc Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 24 Apr 2026 02:06:38 -0600 Subject: [PATCH] fix: use mcqAnswer.value in template delete handler --- src/admin/tutorial/components/ExerciseManager.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/tutorial/components/ExerciseManager.vue b/src/admin/tutorial/components/ExerciseManager.vue index e7a0b30..a928696 100644 --- a/src/admin/tutorial/components/ExerciseManager.vue +++ b/src/admin/tutorial/components/ExerciseManager.vue @@ -247,7 +247,7 @@ function typeTagType(type: string): "success" | "info" | "warning" { @click=" () => { mcqOptions.splice(i, 1) - mcqAnswer = mcqAnswer + mcqAnswer.value = mcqAnswer.value .filter((a) => a !== i) .map((a) => (a > i ? a - 1 : a)) }