Skip to content

Commit

Permalink
🐞 fix(About): 修复点赞后显示异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wallleap committed Aug 5, 2023
1 parent 6025e3f commit 9194231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/about/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ export default {
if (res !== 'undefined')
this.likeTimes = res
},
likeClick() {
async likeClick() {
if (this.isLiked === 'isLiked') {
this.$message({
content: '您已经点过赞了哦~',
type: 'warning',
})
return
}
this.likeTimes = this.$store.dispatch('leancloud/queryLikeAction').catch((err) => {
this.likeTimes = await this.$store.dispatch('leancloud/queryLikeAction').catch((err) => {
this.$message({
content: '点赞失败',
type: 'error',
Expand Down

0 comments on commit 9194231

Please sign in to comment.