Showing
1 changed file
with
6 additions
and
1 deletions
| @@ -128,7 +128,6 @@ export struct HomePageBottomCommentComponent { | @@ -128,7 +128,6 @@ export struct HomePageBottomCommentComponent { | ||
| 128 | let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum) | 128 | let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum) |
| 129 | 129 | ||
| 130 | MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => { | 130 | MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => { |
| 131 | - if (this.curPageNum === 1) this.data_comment.clear() | ||
| 132 | if (!this.data_comment || value.list.length == 0) { | 131 | if (!this.data_comment || value.list.length == 0) { |
| 133 | this.hasMore = false | 132 | this.hasMore = false |
| 134 | this.isLoading = false | 133 | this.isLoading = false |
| @@ -174,6 +173,9 @@ export struct HomePageBottomCommentComponent { | @@ -174,6 +173,9 @@ export struct HomePageBottomCommentComponent { | ||
| 174 | }) | 173 | }) |
| 175 | 174 | ||
| 176 | if (status.commentIdList.length === 0) { | 175 | if (status.commentIdList.length === 0) { |
| 176 | + | ||
| 177 | + if (this.curPageNum === 1) this.data_comment.clear() | ||
| 178 | + | ||
| 177 | data.forEach((item) => { | 179 | data.forEach((item) => { |
| 178 | let publishTime = | 180 | let publishTime = |
| 179 | DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(item.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN)) | 181 | DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(item.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN)) |
| @@ -199,6 +201,9 @@ export struct HomePageBottomCommentComponent { | @@ -199,6 +201,9 @@ export struct HomePageBottomCommentComponent { | ||
| 199 | } | 201 | } |
| 200 | 202 | ||
| 201 | MinePageDatasModel.getOtherUserCommentLikeStatusData(status, getContext(this)).then((newValue) => { | 203 | MinePageDatasModel.getOtherUserCommentLikeStatusData(status, getContext(this)).then((newValue) => { |
| 204 | + | ||
| 205 | + if (this.curPageNum === 1) this.data_comment.clear() | ||
| 206 | + | ||
| 202 | newValue.forEach((item) => { | 207 | newValue.forEach((item) => { |
| 203 | data.forEach((list) => { | 208 | data.forEach((list) => { |
| 204 | if (item.commentId == list.id) { | 209 | if (item.commentId == list.id) { |
-
Please register or login to post a comment