diff --git a/LittlePaimon/utils/brower.py b/LittlePaimon/utils/brower.py index cbec8fd1..687f9578 100644 --- a/LittlePaimon/utils/brower.py +++ b/LittlePaimon/utils/brower.py @@ -152,9 +152,9 @@ async def screenshot( else: card = page if path: - img = await card.screenshot(path=path, timeout=timeout) + img = await card.screenshot(path=path, timeout=timeout, full_page=False) else: - img = await card.screenshot(timeout=timeout) + img = await card.screenshot(timeout=timeout, full_page=False) return MessageSegment.image(img) except Exception as e: logger.warning(f"Playwright 截图 url:{url} element:{element} 发生错误 {type(e)}:{e}")