From 0a47f48e81cf91a912fd03475d684595b5f9f0eb Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 20 Mar 2023 14:45:40 +0800 Subject: [PATCH] 120 --- src/project/fengdu/AppCircle/AppCircle.vue | 5 +++++ src/project/fengdu/AppCircle/MyPostList.vue | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/project/fengdu/AppCircle/AppCircle.vue b/src/project/fengdu/AppCircle/AppCircle.vue index 8857f77..9c1ab26 100644 --- a/src/project/fengdu/AppCircle/AppCircle.vue +++ b/src/project/fengdu/AppCircle/AppCircle.vue @@ -98,6 +98,7 @@ this.getTopicList() uni.$on('updateList', () => { + this.getMyPublishCount() this.changeTab(this.currIndex) }) @@ -110,6 +111,10 @@ } }, + onUnload () { + uni.$off('updateList') + }, + methods: { ...mapActions(['autoLogin']), diff --git a/src/project/fengdu/AppCircle/MyPostList.vue b/src/project/fengdu/AppCircle/MyPostList.vue index 3e81740..3cc9028 100644 --- a/src/project/fengdu/AppCircle/MyPostList.vue +++ b/src/project/fengdu/AppCircle/MyPostList.vue @@ -187,6 +187,7 @@ if (res.code === 0) { this.$toast('删除成功!') this.getInfo() + uni.$emit('updateList') this.changeTab(this.currIndex) } }) @@ -202,6 +203,7 @@ if (res.code === 0) { this.$toast('删除成功!') this.getInfo() + uni.$emit('updateList') this.changeTab(this.currIndex) } })