Skip to content

Commit

Permalink
fix: 🐛 修复 dm5 有缺页和重复页的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed May 9, 2024
1 parent b23c989 commit eeb6398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ try {
return unsafeWindow.newImgs as string[];

return dynamicUpdate(async (setImg) => {
for (let i = 0; i < imgNum; i++) {
for (let i = 0; i < imgNum; ) {
const newImgs = await getPageImg(i + 1);
newImgs.forEach((url) => setImg(i, url));
for (const url of newImgs) setImg(i++, url);
}
}, imgNum)();
},
Expand Down

0 comments on commit eeb6398

Please sign in to comment.