Skip to content

Commit

Permalink
fix: diff bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 9, 2022
1 parent e2798d0 commit a811026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime-core/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export function createRenderer(options) {
} else {
// 如果没key 的话,那么只能是遍历所有的新节点来确定当前节点存在不存在了
// 时间复杂度O(n)
for (let j = s2; j < e2; j++) {
for (let j = s2; j <= e2; j++) {
if (isSameVNodeType(prevChild, c2[j])) {
newIndex = j;
break;
Expand Down

0 comments on commit a811026

Please sign in to comment.