fix: use mcqAnswer.value in template delete handler
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-04-24 02:06:38 -06:00
parent 5c9972315c
commit 0ca1a142a4

View File

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