Skip to content

Commit

Permalink
fix: 修复ABCD纯答案直接点击的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Apr 17, 2022
1 parent 718b8eb commit 9df1222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/core/worker/question.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function defaultQuestionResolve<E> (
const ans = StringUtils.nowrap(answer.answer).trim();
if (ans.length === 1 && isPlainAnswer(ans)) {
const index = ans.charCodeAt(0) - 65;
options[index].click();
handler('single', options[index].innerText, options[index], ctx);
return { finish: true, option: options[index] };
}
}
Expand Down

0 comments on commit 9df1222

Please sign in to comment.