CatPtain commited on
Commit
dc03a4a
·
verified ·
1 Parent(s): 681b59a

Upload screenshotService.js

Browse files
backend/src/services/screenshotService.js CHANGED
@@ -730,8 +730,8 @@ class ScreenshotService {
730
  });
731
  });
732
 
733
- // 额外等待时间确保渲染完成
734
- await page.waitForTimeout(500);
735
 
736
  // 优化内存使用
737
  if (global.gc && Math.random() < 0.1) { // 随机触发GC,避免每次都执行
 
730
  });
731
  });
732
 
733
+ // 额外等待时间确保渲染完成,特别是SVG元素
734
+ await page.waitForTimeout(1500);
735
 
736
  // 优化内存使用
737
  if (global.gc && Math.random() < 0.1) { // 随机触发GC,避免每次都执行