Match-id-8aa73ad0d48d2def8668dac345dcae9358eb62c9
This commit is contained in:
parent
d3e3492640
commit
7baba42281
|
@ -199,6 +199,10 @@ export function calcStartUpdateVNode(treeRoot: VNode) {
|
|||
for (let i = 1; i < startNodePath.length; i++) {
|
||||
const pathIndex = Number(startNodePath[i]);
|
||||
node = getChildByIndex(node, pathIndex)!;
|
||||
// 路径错误时,回退到从根更新
|
||||
if (node == null) {
|
||||
return treeRoot;
|
||||
}
|
||||
}
|
||||
|
||||
return node;
|
||||
|
|
Loading…
Reference in New Issue