From bc5880ec31fd0167d3554b6d3d24441557ff882f Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Sun, 19 Jul 2026 19:55:58 +0800 Subject: [PATCH] fix: add explicit type annotation to child variable --- src/components/ReviewRecall.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ReviewRecall.vue b/src/components/ReviewRecall.vue index 33cb8a1..87b2ffb 100644 --- a/src/components/ReviewRecall.vue +++ b/src/components/ReviewRecall.vue @@ -139,7 +139,7 @@ const findNodeByPath = (node: MindMapTreeNode, path: string): MindMapTreeNode | let current: MindMapTreeNode | null = node; for (let i = 0; i < parts.length && current; i++) { if (current.title === parts[i] && i === parts.length - 1) return current; - const child = (current.children || []).find((c) => c.title === parts[i]); + const child: MindMapTreeNode | undefined = (current.children || []).find((c) => c.title === parts[i]); current = child || null; } return null;