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

Commit

Permalink
fix: (#274) 资讯详情 评论后刷新评论列表
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jun 27, 2018
1 parent b5ae843 commit 855ce76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/page/news/newsDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,10 @@ export default {
.post(`/news/${this.newsID}/comments`, params, {
validataStatus: s => s === 201
})
.then(({ data }) => {
.then(() => {
this.$Message.success("评论成功");
console.log(data);
this.fetchNewsComments();
this.commentCount += 1;
bus.$emit("commentInput:close", true);
})
.catch(() => {
Expand Down

0 comments on commit 855ce76

Please sign in to comment.