vue评论点赞列表点赞,点击哪个哪个状态改变
后台数据如下:
{
“body”:{
“host”:null,
“code”:200,
“errorMessage”:null,
“data”:[
{
“accountId”:“1”,
“commentId”:“2”,
“headPortrait”:“http://qiniu.yibaimishenghuo.com/1612603455(1)_1613700243471.jpg”,
“nickname”:“222”,
“created”:“2021-03-02 19:21:00”,
“content”:“22222”,
“likes”:0,
“isLike”:false
},
{
“accountId”:“1”,
“commentId”:“1”,
“headPortrait”:“http://qiniu.yibaimishenghuo.com/1612603455(1)_1613700243471.jpg”,
“nickname”:“222”,
“created”:“2021-03-02 19:20:50”,
“content”:“11111”,
“likes”:0,
“isLike”:false
},
{
“accountId”:“1364171838251044866”,
“commentId”:“3”,
“headPortrait”:null,
“nickname”:"",
“created”:“2021-03-02 19:21:12”,
“content”:“33333”,
“likes”:0,
“isLike”:false
}
],
“currentPage”:1,
“size”:10,
“total”:3
},
“statusCode”:200
}
代码如下:
<div class="flex" v-for="(vv,index) in commentList">
<div class="touxiang">
<img class="img" :src="vv.headPortrait" alt="">
</div>
<div class=