Skip to content

Commit

Permalink
fix: Resolve ESLint warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GhhG123 committed Nov 27, 2024
1 parent 083fedb commit c06a485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/routes/shu/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function handler(ctx) {
}); // 获取详情页内容
const content = load(detailResponse.data); // 使用cheerio解析内容

item.description = item.description = content('#vsb_content_2 .v_news_content').html() || '内容无法提取';// 提取内容区详情
item.description = content('#vsb_content_2 .v_news_content').html() || '内容无法提取';// 提取内容区详情

return item; // 返回完整的item
})
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/shu/xykd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function handler(ctx) {
const dateParts = item
.find('div.sj p')
.toArray()
.map(p => $(p).text().trim()); // 提取日期部分
.map((p) => $(p).text().trim()); // 提取日期部分

return {
title: item.find('p.bt').text().trim(), // 获取标题
Expand Down

0 comments on commit c06a485

Please sign in to comment.