fix each.find is not a function (#1603)
* update bug report template * fix each.find is not a function
This commit is contained in:
@@ -9,9 +9,13 @@ module.exports = async (ctx) => {
|
||||
const list = $('.archive-type-post');
|
||||
const item = await Promise.all(
|
||||
Array.from(list).map(async (each) => {
|
||||
const itemLink = each.find('.archive-article-title').attr('href');
|
||||
const itemLink = $(each)
|
||||
.find('.archive-article-title')
|
||||
.attr('href');
|
||||
const item = {
|
||||
title: each.find('.archive-article-title').text(),
|
||||
title: $(each)
|
||||
.find('.archive-article-title')
|
||||
.text(),
|
||||
link: encodeURI(`${url}${itemLink}`),
|
||||
};
|
||||
const key = item.link;
|
||||
|
||||
Reference in New Issue
Block a user