From 180bd088397159e32dc70da4eefd507721ced432 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Fri, 8 Mar 2024 20:03:01 +0800 Subject: [PATCH] fix: hyperlink word count statistics #449 --- src/editor/core/worker/works/wordCount.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor/core/worker/works/wordCount.ts b/src/editor/core/worker/works/wordCount.ts index c780fd9..e743c40 100644 --- a/src/editor/core/worker/works/wordCount.ts +++ b/src/editor/core/worker/works/wordCount.ts @@ -60,9 +60,7 @@ function pickText(elementList: IElement[]): string { e++ } text += pickText(valueList) - } - // 文本追加 - if (!element.type || element.type === ElementType.TEXT) { + } else if (!element.type || element.type === ElementType.TEXT) { text += element.value } e++