diff --git a/components/card.vue b/components/card.vue index 36819f3..0075ba6 100644 --- a/components/card.vue +++ b/components/card.vue @@ -116,7 +116,7 @@ // this.isVoteFlag = false const params = { rumorId:this.currentShow.id, // id - votePerson:'3333' // 用户唯一标识 + votePerson:localStorage.getItem('userIdentifying') // 用户唯一标识 } // 查询用户是否投票 isVote(params).then(res => { @@ -133,7 +133,7 @@ vote(flag) { const params = { rumorId:this.currentShow.id, - votePerson:'3333', // 用户唯一标识 + votePerson:localStorage.getItem('userIdentifying'), // 用户唯一标识 status: flag ? '1' : '0' } addVote(params).then(res => {