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++