fix each.find is not a function (#1603)

* update bug report template

* fix each.find is not a function
This commit is contained in:
Chenyang Shi
2019-02-25 11:31:04 +08:00
committed by DIYgod
parent 31fc24f8ed
commit e5e0a0a838
+6 -2
View File
@@ -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;