From 2e670a674d0b264bd9ff0bbb9b1ee43bffebe977 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 19 Mar 2024 01:00:25 +0800 Subject: [PATCH] add output to child.js --- node_run/child.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node_run/child.js b/node_run/child.js index 29f6417..6af0562 100644 --- a/node_run/child.js +++ b/node_run/child.js @@ -50,7 +50,10 @@ process.on('message', ([mode, name]) => { window.resolve = (...args) => { process.send(args); window.close(); - } + }; + window.output = (...message) => { + console.log('page:', message); + }; } }); } catch (e) {