diff --git a/components/tree/demo/search.md b/components/tree/demo/search.md
index c75e977c41..e37a9cf347 100644
--- a/components/tree/demo/search.md
+++ b/components/tree/demo/search.md
@@ -116,7 +116,7 @@ const App: React.FC = () => {
{afterStr}
) : (
- {item.title}
+ {strTitle}
);
if (item.children) {
return { title, key: item.key, children: loop(item.children) };