<div v-for="(item, index) in gr"
:key="space.id"
class="val-name">
</div>
After making a few modifications to the API call logic, I was able to achieve my desired outcome. However, the issue lies in the fact that the array values may not always remain the same. As a solution, I have opted to rearrange the array values based on the ID.