From 4175889ebbf358d5b467d972a6cde6900bafa27f Mon Sep 17 00:00:00 2001 From: heimanba <371510756@qq.com> Date: Sun, 15 Dec 2024 16:40:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E6=97=B6=E5=80=99=EF=BC=8Cprevent=20?= =?UTF-8?q?=E4=B8=BAundefined=20=E5=AF=BC=E8=87=B4puppeteer=20=E8=B6=85?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/src/utils/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/utils/download.ts b/service/src/utils/download.ts index 50a67c2..8bddac1 100644 --- a/service/src/utils/download.ts +++ b/service/src/utils/download.ts @@ -40,7 +40,7 @@ const saveScreenshot = async (url: string, { path, width, height, thumbPath, siz devices && (await page.emulate(devices)) } // 自动模式下页面加载完毕立即截图 - if (prevent === false) { + if (!prevent) { page.on('load', async () => { clearTimeout(regulators) await autoScroll(page)