From 027a681dd803d83a4ade674cae6552df0c27ee47 Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Wed, 26 Oct 2022 14:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=95=E7=A4=BA=E6=95=B0?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/noteComment.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Portal/noteComment.vue b/src/components/Portal/noteComment.vue index ec0cc4fb..97195d2b 100644 --- a/src/components/Portal/noteComment.vue +++ b/src/components/Portal/noteComment.vue @@ -457,8 +457,8 @@ let content = ''; content = item.content.replace(/(\n){2,}/,'
'); item.content = content; - if(!item.isAll && item.content && item.content.length > 170) { - return item.content.slice(0, 170) + "..."; + if(!item.isAll && item.content && item.content.length > 150) { + return item.content.slice(0, 150) + "..."; } return item.content; },