diff --git a/src/components/BsCommentThumbup.vue b/src/components/BsCommentThumbup.vue index 8a03884..8c48d22 100644 --- a/src/components/BsCommentThumbup.vue +++ b/src/components/BsCommentThumbup.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-21 16:01:19 * @LastEditors: ch - * @LastEditTime: 2022-06-28 21:11:53 + * @LastEditTime: 2022-06-29 10:20:40 * @Description: file content --> @@ -35,12 +35,6 @@ export default { usefulCount : 0 } }, - computed : { - answerCount (){ - const arr = this.commentDetail.answerCommentList || []; - return arr.length; - } - }, watch :{ commentDetail (){ this.isLike = this.commentDetail.isLike; diff --git a/src/pages/goods/comment/detail.vue b/src/pages/goods/comment/detail.vue index 7a77ce9..412cd5f 100644 --- a/src/pages/goods/comment/detail.vue +++ b/src/pages/goods/comment/detail.vue @@ -15,9 +15,9 @@ - 全部评论( {{answerCount}}条) + 全部评论( {{detail.replyCount}}条) -