Fix infinite scroll
This commit is contained in:
parent
50954d9583
commit
d3c411c348
@ -68,9 +68,9 @@ export default {
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch data')
|
||||
}
|
||||
const data = await res.json()
|
||||
const resData = await res.json()
|
||||
|
||||
for (let category of data) {
|
||||
for (let category of resData.data) {
|
||||
this.data.push(category)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user