Skip to content

Commit

Permalink
fix(core): 修复zhs弹窗关闭的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Aug 26, 2022
1 parent 454e810 commit a688768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/script/zhs/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ export async function switchPlaybackRate(playbackRate: number) {
export async function closeTestDialog() {
const { items } = domSearchAll({ items: '.topic-item' });
if (items.length !== 0) {
const { item, btn } = domSearch({ item: '.topic-item', btn: '[aria-label="弹题测验"] .btn' });
const { item, study } = domSearch({ item: '.topic-item', study: '.video-study' });
// 选择A
item?.click();
await sleep(1000);
// 关闭
btn?.click();
// @ts-ignore
study.__vue__.testDialog = false;
await sleep(1000);
}
}
Expand Down

0 comments on commit a688768

Please sign in to comment.