From 8bc3201f58f33aa6015e89dd4a669377b1baf13c Mon Sep 17 00:00:00 2001 From: liudongqi Date: Wed, 4 Sep 2024 15:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routes/index.js b/routes/index.js index 11a7aa1..bffeed7 100644 --- a/routes/index.js +++ b/routes/index.js @@ -122,9 +122,10 @@ async function handle(url, htmlStr, jsText, cookie, userAgent) { } let val = await store.waitGetAndDelete(uuid, timeout, reTry) - internalVMContext.close() - window.close() - dom = null + // bug 关闭后 部分参数是需要永久保存在内存中的 比如 cookie 实例 下次调用会报错 + // internalVMContext.close() + // window.close() + // dom = null if (val != null) { return val;