diff --git a/lib/routes/foodtalks/index.ts b/lib/routes/foodtalks/index.ts index 6c0050bd06a7ac..4d4d240c1d612d 100644 --- a/lib/routes/foodtalks/index.ts +++ b/lib/routes/foodtalks/index.ts @@ -53,14 +53,13 @@ async function handler() { // 导入 puppeteer 工具类并初始化浏览器实例 const browser = await puppeteer(); - // 打开一个新标签页 const page = await browser.newPage(); await page.goto(url); await page.waitForSelector('.news'); const result = await page.evaluate(() => ({ - html: document.documentElement.outerHTML, - })); + html: document.documentElement.outerHTML, + })); const response = result.html; page.close();