From 6892041093e18bf27b88bf44dfb82f80ee6fd236 Mon Sep 17 00:00:00 2001 From: ch Date: Wed, 29 Jun 2022 12:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=84=E8=AE=BA=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BsCommentThumbup.vue | 10 ++-------- src/pages/goods/comment/detail.vue | 7 ++----- src/pages/goods/comment/preview.vue | 8 ++------ 3 files changed, 6 insertions(+), 19 deletions(-) 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}}条) -