Commit 7062e9cf authored by Damon's avatar Damon

feat: 答错自动勾选正确答案

parent 4922cbfe
......@@ -97,6 +97,10 @@ export default {
this.lists.forEach((v) => {
v.checked = false // 勾选
v.confirm = false // 确认答案
if (this.rightKey.includes(v.sort)) {
this.$set(v, 'checked', true)
this.$set(v, 'confirm', true)
}
})
this.$set(this.lists[index], 'confirm', true)
// 用户选的答案
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment