fix: 修复 web-batch2 文件内字面 \\n 导致的语法错误

This commit is contained in:
yu 2026-10-28 17:44:19 +08:00
parent 4c84674b29
commit d6165c910c

View File

@ -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 };
});