Skip to content

Commit

Permalink
fix(script): 修复超星章节测试填空题不填的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Mar 11, 2023
1 parent 9265c2b commit 05a3cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scripts/src/projects/cx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1253,8 +1253,8 @@ async function chapterTestTask(
option.click();
}
} else if (type === 'completion' && answer.trim()) {
const text = option.querySelector('textarea');
const textareaFrame = option.querySelector('iframe');
const text = option.parentElement?.querySelector('textarea');
const textareaFrame = option.parentElement?.querySelector('iframe');
if (text) {
text.value = answer;
}
Expand Down

0 comments on commit 05a3cd1

Please sign in to comment.