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;