diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index 0bde292a7..be6785057 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -447,7 +447,7 @@ BI.Layout = BI.inherit(BI.Widget, { } else { // 如果新节点在旧节点区间中存在就复用一下 var sameOldIndex = sameOldVnode[1]; updated = self.patchItem(sameOldVnode[0], newStartVnode, sameOldIndex, newStartIdx) || updated; - children[sameOldVnode[0].key == null ? newStartIdx : sameOldVnode[0].key] = self._children[self._getChildName(newStartIdx)] = self._children[self._getChildName(sameOldIndex)]; + children[sameOldVnode[0].key == null ? newStartIdx : sameOldVnode[0].key] = self._children[self._getChildName(sameOldIndex)]; if (newStartIdx !== sameOldIndex) { delete self._children[self._getChildName(sameOldIndex)]; }