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

Commit

Permalink
fix(comment): (#556) 评论列表当评论很长时不显示更多按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 22, 2018
1 parent 07cc242 commit ef2eeef
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/page/article/ArticleComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ export default {
};
},
computed: {
isShowAll: {
get() {
return this.bodyLength < 60 || this.showAll;
},
set(val) {
this.showAll = val;
}
// 需求变更:不显示更多按钮
// isShowAll: {
// get() {
// return this.bodyLength < 60 || this.showAll;
// },
// set(val) {
// this.showAll = val;
// }
// },
isShowAll() {
return true;
},
user() {
const { user } = this.comment;
Expand Down

0 comments on commit ef2eeef

Please sign in to comment.