[Vuejs]-How to generate a dynamic image grid with vue.js?

0👍

I found out, that the site tries to load the picture with the id of 360 but it is not present and i designed the whole function for the id´s to not get above 359 in any way, so i don´t know why…

You did not design the function that way. With 1 and 2 you get that result..
If you want all images from 359 to 0, why don’t just fetch them and then show them in order?

console.log(test(1,1)) // 359
console.log(test(1,2)) // 360

function test(row, col) {
  return 359 - ((row - 1) * 24) + (col - 1)
}

Leave a comment