diff --git a/src/store/SearchStore.js b/src/store/SearchStore.js index e762c41d..37fa631d 100644 --- a/src/store/SearchStore.js +++ b/src/store/SearchStore.js @@ -4,7 +4,7 @@ import config from '@/config' import SearchAPI from '@/services/api/SearchAPI' const searchAPI = new SearchAPI() -const pageSize = 21 +const pageSize = 20 export const useSearchStore = defineStore('search', { state: () => ({ @@ -21,7 +21,7 @@ export const useSearchStore = defineStore('search', { if (!state.data) return [] if (!state.data.total && !state.data.page_size) return [] return [ - ...Array(Math.round(state.data.total / state.data.page_size)).keys() + ...Array(Math.ceil(state.data.total / state.data.page_size)).keys() ].map((page) => { page += 1 return {