周玉环 2 settimane fa
parent
commit
1ae8b587cd
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      server/script-browser.js

+ 1 - 2
server/script-browser.js

@@ -29,8 +29,7 @@ export default async function () {
   // targetUrlWithoutProtocol = targetUrlWithoutProtocol.replace('https://', '');
   try {
     await page.goto(targetUrl, {
-      timeout: 120000,
-      waitUntil: "networkidle", // 等待网络稳定再继续(适合截图)
+      timeout: 120000
     });
     await page.screenshot({ path: `screenshots/screenshot_${timeStamp}.png` });
   } finally {