Skip to content

Commit

Permalink
fix(script): 修复智慧职教MOOC学院自动答题无法处理判断题的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Apr 24, 2023
1 parent eb362c0 commit b573684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/projects/icve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function work({ answererWrappers, period, thread }: CommonWorkOptions) {
if (type === 'judgement' || type === 'single' || type === 'multiple') {
// 这里只用判断多选题是否选中,如果选中就不用再点击了,单选题是 radio,所以不用判断。
if (option.querySelector('.checkbox_on') === null) {
$el('.option_index', option)?.click();
$el('div', option)?.click();
}
} else if (type === 'completion' && answer.trim()) {
const text = option.querySelector('textarea');
Expand Down

0 comments on commit b573684

Please sign in to comment.