Skip to content

Commit

Permalink
refactor: 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Qquanwei committed May 3, 2022
1 parent ef9c879 commit aeb81a6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/client/page/comic/imgList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ function ImgList({ onNextPage, hasNextPage, imgList, onVisitPosition}) {

function renderList(list) {
return list.map((item, index) => {
if (item.name) {
return (
<Fragment key={index}>
<div id={item.name} />
{renderList(item.list)}
</Fragment>
);
}

return (
<img
loading="lazy"
Expand Down

0 comments on commit aeb81a6

Please sign in to comment.