From 1d9c4c54e561ac7e1016dd378f1afaa512f3fdf2 Mon Sep 17 00:00:00 2001 From: XUQINGXI <3104792940@qq.com> Date: Wed, 1 Nov 2023 18:04:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20diff=E6=97=B6=E6=96=B0=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=AD=98=E5=9C=A8key=E9=87=8D=E5=A4=8D=E5=B9=B6=E4=B8=94?= =?UTF-8?q?=E6=97=A7=E8=8A=82=E7=82=B9=E4=B9=9F=E5=92=8C=E8=AF=A5key?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/vdom/patch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/vdom/patch.ts b/src/core/vdom/patch.ts index 173840787bc..d9c8821e598 100644 --- a/src/core/vdom/patch.ts +++ b/src/core/vdom/patch.ts @@ -510,7 +510,7 @@ export function createPatchFunction(backend) { ) } else { vnodeToMove = oldCh[idxInOld] - if (sameVnode(vnodeToMove, newStartVnode)) { + if (isDef(vnodeToMove) && sameVnode(vnodeToMove, newStartVnode)) { patchVnode( vnodeToMove, newStartVnode,