From a688768c39984561cee8d2ecfee7f6ad07d2f78b Mon Sep 17 00:00:00 2001 From: enncy <877526278@qq.com> Date: Fri, 26 Aug 2022 15:10:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BF=AE=E5=A4=8Dzhs=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=85=B3=E9=97=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/script/zhs/study.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/script/zhs/study.ts b/packages/core/src/script/zhs/study.ts index 48705dfb..ffb8df76 100644 --- a/packages/core/src/script/zhs/study.ts +++ b/packages/core/src/script/zhs/study.ts @@ -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); } }