mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-28 04:10:31 +08:00
Merge pull request #168 from heimanba/main
fix: 🐛 保存模版时候,prevent 为undefined 导致puppeteer 超时
This commit is contained in:
commit
2b596177ca
@ -67,7 +67,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 () => {
|
||||
await autoScroll()
|
||||
await sleep(wait)
|
||||
|
Loading…
x
Reference in New Issue
Block a user