From 96f04bbdca37dc811fc7f8eb8394b0f9becc55ca Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 18 Jan 2022 15:41:16 +0800 Subject: [PATCH] 26846 --- src/apps/AppVillageDiscuss/Detail.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/apps/AppVillageDiscuss/Detail.vue b/src/apps/AppVillageDiscuss/Detail.vue index 7ef042c4..9af2d27e 100644 --- a/src/apps/AppVillageDiscuss/Detail.vue +++ b/src/apps/AppVillageDiscuss/Detail.vue @@ -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) }) },