fix slow manga thumbnails issue, next manga reset page issue

This commit is contained in:
Aria Moradi
2021-05-17 14:22:24 +04:30
parent 57274a0a01
commit 9d38f478e3
5 changed files with 15 additions and 11 deletions

View File

@@ -117,6 +117,7 @@ export default function Reader() {
useEffect(() => {
setChapter(initialChapter);
setCurPage(0);
client.get(`/api/v1/manga/${mangaId}/chapter/${chapterIndex}`)
.then((response) => response.data)
.then((data:IChapter) => {