Browse Source

refactor: add missing else in genNode (#8600)

dev
Clark Du 6 years ago
committed by Evan You
parent
commit
390ff8ede8
  1. 2
      src/compiler/codegen/index.js

2
src/compiler/codegen/index.js

@ -435,7 +435,7 @@ function needsNormalization (el: ASTElement): boolean {
function genNode (node: ASTNode, state: CodegenState): string {
if (node.type === 1) {
return genElement(node, state)
} if (node.type === 3 && node.isComment) {
} else if (node.type === 3 && node.isComment) {
return genComment(node)
} else {
return genText(node)

Loading…
Cancel
Save