From d6165c910ca7b57d5ea2abfe0c961a52c80f8f5e Mon Sep 17 00:00:00 2001 From: yu <191972707@qq.com> Date: Wed, 28 Oct 2026 17:44:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20web-batch2=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=86=85=E5=AD=97=E9=9D=A2=20\\n=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/capabilities/web-batch2.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/capabilities/web-batch2.ts b/src/main/capabilities/web-batch2.ts index b18624a..88c5a88 100644 --- a/src/main/capabilities/web-batch2.ts +++ b/src/main/capabilities/web-batch2.ts @@ -71,7 +71,9 @@ register(["Element_ElementAarray", "Element_ElementCaptureSimilar"], async (ctx, }); ctx.log("已获取 " + references.length + " 个相似元素(数组)", "info", node.id); return references; -});\n\nregister("Element_StartAutoClosePopup", async (ctx, node) => { +}); + +register("Element_StartAutoClosePopup", async (ctx, node) => { const browser = await browserSession(); const started = browser.startAutoCloseDialogs(); ctx.log(started ? "弹窗自动关闭已开启" : "弹窗自动关闭已在运行中", "info", node.id); @@ -84,3 +86,4 @@ register("Element_StopAutoClosePopup", async (ctx, node) => { ctx.log(stopped ? "弹窗自动关闭已停止" : "弹窗自动关闭未在运行", "info", node.id); return { active: false, stopped }; }); +