Commit 16b2c0bb by pangchong

fix: 避免在树节点的 REFBLOCK 标题中递归拼接显示子节点 REFINT 的文本内容

parent 4ef8c76f
...@@ -190,6 +190,9 @@ export function useNodeTree( ...@@ -190,6 +190,9 @@ export function useNodeTree(
if (item.type === 'text') { if (item.type === 'text') {
return item.text || '' return item.text || ''
} else if (item.type === 'element' && item.nodeId) { } else if (item.type === 'element' && item.nodeId) {
if (n.tagName === 'REFBLOCK') {
return ''
}
const child = n.children.find((c) => c.id === item.nodeId) const child = n.children.find((c) => c.id === item.nodeId)
return child ? getFullText(child) : '' return child ? getFullText(child) : ''
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment