I am working with VUE and when using a V-FOR I try to show the images but it does not show them. The file I walk with V-FOR is a simple JSON structured as follows:
[
{
"id": 1,
"name": "Lavandería",
"img": "../assets/img/icons/rinse.png"
},
{
"id": 2,
"name": "Tintorería",
"img": "../assets/img/icons/shirt-2.png"
},
{
"id": 3,
"name": "Planchado",
"img": "../assets/img/icons/iron.png"
},
{
"id": 4,
"name": "Otros",
"img": "../assets/img/icons/fashion.png"
}
]
And I go through it in the following way:
<div class="item-servicios-select" v-for="item in services" :key="item.id">
<div class="card select-item">
<div class="card-content service-content">
<div class="service-icon">
<img class="responsive-img" :src="item.img" alt="">
{{ item.name }}
</div>
</div>
</div>
</div>
And the mentioned error occurs that does not show the image. However if I do step the image path without using VUE works correctly:
<div class="item-servicios-select">
<div class="card select-item">
<div class="card-content service-content">
<div class="service-icon">
<img class="responsive-img" src="../assets/img/icons/rinse.png" alt="">
TEST
</div>
</div>
</div>
</div>
Attached image to show error.
Thank you.
