zwxi 9 months ago
parent
commit
c970e6ced6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/smart_report.go

+ 3 - 0
services/smart_report.go

@@ -228,6 +228,9 @@ async def main():
             'timeout': 1000000  # 设置超时时间为 100 秒
         })
         
+		# 在这里添加两秒的等待
+		await asyncio.sleep(2)
+
         # 截取全页面的屏幕截图
         await page.screenshot({
             'path': "%s",