<tr v-for="img in image">
<td>{{ img }}</td>
<td> <button v-on:click="removeImage(id)">Remove image</button></td>
</tr>
removeImage(id) {
axios.post('/img/delete/' + id).then(function(){
console.log('SUCCESS!!');
})
.catch(function(){
console.log('FAILURE!!');
});
},
<tr v-for="(img, n) in image">
<td>{{ img }}</td>
<td> <button v-on:click="removeImage(n)">Remove image</button></td>
</tr>
...
.then(response => {
this.image.splice(n, 1);
})
...