diff --git a/web/app/src/routes/Posts.svelte b/web/app/src/routes/Posts.svelte index 1e6eea7..fe1b61b 100644 --- a/web/app/src/routes/Posts.svelte +++ b/web/app/src/routes/Posts.svelte @@ -13,6 +13,7 @@ const data = await getPosts({page}); if(Array.isArray(data.posts)) { posts = data.posts; + totalPages = data.totalPage; } } onMount(() => { diff --git a/web/app/src/routes/Tag.svelte b/web/app/src/routes/Tag.svelte index 15d20b8..93a0c26 100644 --- a/web/app/src/routes/Tag.svelte +++ b/web/app/src/routes/Tag.svelte @@ -22,6 +22,7 @@ queryParams = queryString.parse(location.search); if(queryParams.page) { page = queryParams.page; + totalPages = data.totalPage; } getData(); })