fix get static paths params

hotfix/hotfix-swiper
Ernest Litvinenko 2024-03-22 00:01:39 +03:00
parent 50a8a51a20
commit e502863a16
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ export default OilCard
export const getStaticPaths = async () => { export const getStaticPaths = async () => {
const service = new LocalAPI() const service = new LocalAPI()
const data = await service.getCatalogItems() as {code: string}[] const data = await service.getCatalogItems({}, 1) as {code: string}[]
const codes = data.map(item => ({params: {code: item.code}})) const codes = data.map(item => ({params: {code: item.code}}))
return { return {
paths: [ paths: [