diff --git a/src/component.js b/src/component.js index 2195c32cd..28db0dac9 100644 --- a/src/component.js +++ b/src/component.js @@ -32,7 +32,11 @@ export default { const params: Array = [] locale && params.push(locale) - children.forEach(child => params.push(child)) + children.forEach(child => { + if (child.tag || child.text.trim()) { + params.push(child) + } + }) return h(props.tag, data, i18n.i(path, ...params)) }