fix(route): 18comic (#11363)
* fix(route): 18comic * fix: lazy load img preview
This commit is contained in:
parent
8fd98af6a7
commit
4c4d30aa50
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
|
||||
return {
|
||||
title: item.text().trim(),
|
||||
link: `${rootUrl}${item.prev().prev().attr('href')}`,
|
||||
link: `${rootUrl}${item.prev().find('a').attr('href')}`,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ module.exports = {
|
|||
.join(', ');
|
||||
item.description = `<p>${content('#intro-block .p-t-5').text()}</p><img src="${content('.img_zoom_img img')
|
||||
.toArray()
|
||||
.map((image) => content(image).attr('src'))
|
||||
.map((image) => content(image).attr('data-original'))
|
||||
.join('"><img src="')}">`;
|
||||
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Reference in New Issue