update renderers/puppeteer/lib/puppeteer.js.

This commit is contained in:
ikuaki1009 2023-04-18 03:45:23 +00:00 committed by Gitee
parent a533715758
commit b4819d03ca
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export default class PuppeteerRenderer {
}) })
} }
if (i !== 1 && i <= num) { if (i !== 1 && i <= num) {
await page.evaluate(() => window.scrollBy(0, pageHeight)) await page.evaluate(pageHeight => window.scrollBy(0, pageHeight), pageHeight)
} }
if (num === 1) { if (num === 1) {
buff = await body.screenshot(randData) buff = await body.screenshot(randData)