problem description:
data
data() {
return {
// 1
floor1:[]
}
}
created
this.axios.get("https://easy-mock.com/mock/5b559f6f4ff1f856c44c67ec/index")
.then(response=> {
console.log(response);
if(response.status==200){
//1
this.floor1 = response.data.data.floor1
})
html
<div class="floor-anomaly">
<div class="floor-one"><img :src="floor1[0].image" width="100%" /></div>
</div>
this is an error message. That"s why you can"t use the subscript value