diff --git a/src/components/FeedCard/FeedCard.vue b/src/components/FeedCard/FeedCard.vue index 4899a910..e79f5ab6 100644 --- a/src/components/FeedCard/FeedCard.vue +++ b/src/components/FeedCard/FeedCard.vue @@ -313,6 +313,7 @@ export default { this.$Message.success("删除动态成功"); this.$nextTick(() => { this.$el.remove(); + this.$emit("afterDelete"); }); }); } diff --git a/src/page/UserHome.vue b/src/page/UserHome.vue index 91955dc1..4d8d8de5 100644 --- a/src/page/UserHome.vue +++ b/src/page/UserHome.vue @@ -94,7 +94,8 @@ :key='`ush-${userID}-feed${feed.id}`'> + :timeLine="true" + @afterDelete="fetchUserInfo()" />