...
|
...
|
@@ -81,6 +81,7 @@ export default { |
|
|
},
|
|
|
listTitle: String,
|
|
|
scrollTop: Number,
|
|
|
scrollTo: Function,
|
|
|
share: Boolean,
|
|
|
posId: Number,
|
|
|
},
|
...
|
...
|
@@ -179,7 +180,7 @@ export default { |
|
|
this.$refs.commentList && this.$refs.commentList.addComment(comment);
|
|
|
},
|
|
|
toCommentList() {
|
|
|
if (this.data.commentCount) {
|
|
|
if (this.articleState.commentCount) {
|
|
|
if (this.$refs.commentList && this.scrollTo) {
|
|
|
this.scrollTo({scrollTop: this.$refs.commentList.$el.offsetTop - this.$refs.header.$el.offsetHeight});
|
|
|
}
|
...
|
...
|
|