покаченила
This commit is contained in:
1 parent
859fc665c8
commit
5520169b0d
1 file changed
+5
-4
@@ -735,21 +735,22 @@ export default {
|
|||||||
galleryimges.value.likes= result.data
|
galleryimges.value.likes= result.data
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(newss.value.result, '===========================================');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const toggleLikeAll = (idimage) => {
|
const toggleLikeAll = (idimage) => {
|
||||||
|
console.log(idimage, 'idimage');
|
||||||
|
console.log(newss.value.result[0].gallery.filter(e=>e.id ==idimage).likes,'newss.value.result[0].gallery');
|
||||||
|
|
||||||
axiosApiInstance.post(`api/navigation/gallery/`, {image: idimage}).then(result => {
|
axiosApiInstance.post(`api/navigation/gallery/`, {image: idimage}).then(result => {
|
||||||
newss.value.result[0].gallery[idimage-1].likes = result.data
|
newss.value.result[0].gallery.filter(e=>e.id ==idimage)[0].likes = result.data
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(newss.value.result[0].gallery[idimage]
|
|
||||||
, '===========================================')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user