From 920ddc207368558750b523a24d86ff38f080f3ca Mon Sep 17 00:00:00 2001 From: pengchongfu Date: Sun, 7 May 2017 20:29:00 +0800 Subject: [PATCH] only set a key to VNode have similar shape, fix #5618 --- src/core/vdom/helpers/normalize-children.js | 26 +++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/core/vdom/helpers/normalize-children.js b/src/core/vdom/helpers/normalize-children.js index 6c09a096a5d..bc93d5433b8 100644 --- a/src/core/vdom/helpers/normalize-children.js +++ b/src/core/vdom/helpers/normalize-children.js @@ -1,7 +1,7 @@ /* @flow */ import VNode, { createTextVNode } from 'core/vdom/vnode' -import { isDef, isUndef, isPrimitive } from 'shared/util' +import { isDef, isUndef, isPrimitive, isObject } from 'shared/util' // The template compiler attempts to minimize the need for normalization by // statically analyzing the template at compile time. @@ -45,7 +45,11 @@ function normalizeArrayChildren (children: any, nestedIndex?: string): Array