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)