周玉环 2 долоо хоног өмнө
parent
commit
1ae8b587cd

+ 1 - 2
server/script-browser.js

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