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

Commit

Permalink
fix: 解决圈子首页的帖子操作条数据不对的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Jun 20, 2018
1 parent 42bd1aa commit ecb231a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/components/FeedCard/GroupFeedCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ export default {
this.feed.liked = val;
}
},
commentCount: {
get() {
return this.feed.comments_count || 0;
},
set(val) {
this.feed.comments_count = ~~val;
}
},
likeCount: {
get() {
return this.feed.likes_count || 0;
Expand All @@ -85,9 +93,6 @@ export default {
this.feed.likes_count = ~~val;
}
},
commentCount() {
return this.feed.comments_count;
},
body() {
return this.feed.body || "";
},
Expand All @@ -102,11 +107,14 @@ export default {
},
has_collect: {
get() {
return this.feed.collected;
return this.feed.collected || 0;
},
set(val) {
this.feed.collected = val;
}
},
viewCount() {
return this.feed.views_count || 0;
}
}
};
Expand Down

0 comments on commit ecb231a

Please sign in to comment.