Authored by yyq

fix long comment

... ... @@ -160,6 +160,7 @@ export default {
this.empty = true;
} else {
if (comments.length) {
this.empty = false;
this.$emit('on-page-change', {
page: result.data.page,
size: result.data.total
... ... @@ -241,6 +242,7 @@ export default {
},
async onComment() {
this.page = 1;
this.totalPage = 1;
this.$refs.scroll.scrollTo(0, 0, 200);
this.fetchComments();
this.$emit('on-comment', {destId: this.destId});
... ...
... ... @@ -40,7 +40,7 @@
:destId="data.articleId"
:popup="true"
:article-id="data.articleId"
:commentCount="data.commentCount"
:commentCount="articleState.commentCount"
:pos-id="posId"
@on-close="onCloseComment"
@on-comment="onActionComment"></Comment>
... ...
... ... @@ -22,7 +22,7 @@
<div class="publish-time">
<span>{{publishTime}}</span>
<div class="more-wrap">
<div v-if="data.articleId" class="more-wrap">
<i class="iconfont icon-more1" @click="onMore"></i>
</div>
</div>
... ...
... ... @@ -356,6 +356,7 @@ export default {
}
Vue.set(state.articleSingleDetail, article.articleId, article);
setArticleList(state, data, 'detail');
},
[Types.FETCH_ARTICLE_SINGLE_DETAIL_FAILD](state) {
state.fetchArticleSingleDetail = false;
... ...