Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: (issue #402) 个人主页删除动态后重新拉取用户数据
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jun 13, 2018
1 parent 2e6aa26 commit 4dabe4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/FeedCard/FeedCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export default {
this.$Message.success("删除动态成功");
this.$nextTick(() => {
this.$el.remove();
this.$emit("afterDelete");
});
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/page/UserHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
:key='`ush-${userID}-feed${feed.id}`'>
<feed-card
:feed="feed"
:timeLine="true" />
:timeLine="true"
@afterDelete="fetchUserInfo()" />
</li>
</ul>
<div class="m-box m-aln-center m-justify-center load-more-box">
Expand Down

0 comments on commit 4dabe4c

Please sign in to comment.