mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-12-23 00:13:45 +00:00
fix: pagination total pages
This commit is contained in:
parent
9624a408b2
commit
5123bc8a24
@ -13,6 +13,7 @@
|
||||
const data = await getPosts({page});
|
||||
if(Array.isArray(data.posts)) {
|
||||
posts = data.posts;
|
||||
totalPages = data.totalPage;
|
||||
}
|
||||
}
|
||||
onMount(() => {
|
||||
|
@ -22,6 +22,7 @@
|
||||
queryParams = queryString.parse(location.search);
|
||||
if(queryParams.page) {
|
||||
page = queryParams.page;
|
||||
totalPages = data.totalPage;
|
||||
}
|
||||
getData();
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user