This commit is contained in:
liuye
2022-01-18 15:41:16 +08:00
parent d4ba05df45
commit 96f04bbdca

View File

@@ -201,18 +201,14 @@ export default {
},
like(id) {
this.$loading()
this.$http.post(`/app/appvillagediscussmessage/suport?id=${id}&userId=${this.user.id}`).then((res) => {
this.$hideLoading()
if (res.code === 0) {
this.$u.toast('点赞成功')
this.$nextTick(() => {
this.getDetail()
})
} else {
this.$u.toast(res.msg)
}
this.getDetail()
}
}).catch((err) => {
this.$u.toast(err)
})
},