26846
This commit is contained in:
@@ -201,18 +201,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
like(id) {
|
like(id) {
|
||||||
this.$loading()
|
|
||||||
this.$http.post(`/app/appvillagediscussmessage/suport?id=${id}&userId=${this.user.id}`).then((res) => {
|
this.$http.post(`/app/appvillagediscussmessage/suport?id=${id}&userId=${this.user.id}`).then((res) => {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.$u.toast('点赞成功')
|
this.$u.toast('点赞成功')
|
||||||
|
this.getDetail()
|
||||||
this.$nextTick(() => {
|
}
|
||||||
this.getDetail()
|
}).catch((err) => {
|
||||||
})
|
this.$u.toast(err)
|
||||||
} else {
|
|
||||||
this.$u.toast(res.msg)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user