mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix:issue #673
This commit is contained in:
parent
5762485193
commit
494820dcf8
1 changed files with 2 additions and 1 deletions
|
|
@ -358,7 +358,8 @@ export async function renderUrl (e, url, renderCfg = {}) {
|
|||
width: 1280,
|
||||
height: 720
|
||||
})
|
||||
await page.waitForTimeout(renderCfg.wait || 1000)
|
||||
/** 等待markdown-body加载完毕 */
|
||||
await page.waitForSelector(".vuepress-markdown-body")
|
||||
let buff = base64 = await page.screenshot({ fullPage: true })
|
||||
base64 = segment.image(buff)
|
||||
await page.close().catch((err) => logger.error(err))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue