Authored by yyq

fix topic intro

@@ -176,7 +176,6 @@ export default { @@ -176,7 +176,6 @@ export default {
176 let dom = this.$refs.commentList.getElementsByClassName('comment-' + this.commentId); 176 let dom = this.$refs.commentList.getElementsByClassName('comment-' + this.commentId);
177 177
178 if (scrollHeight && dom.length && (dom[0].offsetHeight + dom[0].offsetTop > scrollHeight)) { 178 if (scrollHeight && dom.length && (dom[0].offsetHeight + dom[0].offsetTop > scrollHeight)) {
179 - console.log(scrollHeight - this.$refs.commentList.offsetHeight)  
180 this.$refs.scroll.scrollTo(0, scrollHeight - this.$refs.commentList.offsetHeight); 179 this.$refs.scroll.scrollTo(0, scrollHeight - this.$refs.commentList.offsetHeight);
181 } 180 }
182 }, 500); 181 }, 500);
@@ -146,7 +146,7 @@ export default { @@ -146,7 +146,7 @@ export default {
146 this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({ 146 this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({
147 articleId: this.data.articleId, 147 articleId: this.data.articleId,
148 introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20, 148 introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20,
149 - introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0), 149 + introCollapseHeight: get(this.$refs, 'intro.offsetHeight', 0),
150 type: this.type 150 type: this.type
151 }); 151 });
152 } 152 }