diff --git a/src/compiler/codegen/index.js b/src/compiler/codegen/index.js index 83d772d526b..0a8451bd33d 100644 --- a/src/compiler/codegen/index.js +++ b/src/compiler/codegen/index.js @@ -310,11 +310,9 @@ function genChildren (el: ASTElement, checkSkip?: boolean): string | void { el.tag !== 'slot') { return genElement(el) } - const normalizationType = getNormalizationType(children) + const normalizationType = checkSkip ? getNormalizationType(children) : 0 return `[${children.map(genNode).join(',')}]${ - checkSkip - ? normalizationType ? `,${normalizationType}` : '' - : '' + normalizationType ? `,${normalizationType}` : '' }` } }