diff --git a/src/pages/script/index.tsx b/src/pages/script/index.tsx index af76b006..c5ebf7cc 100644 --- a/src/pages/script/index.tsx +++ b/src/pages/script/index.tsx @@ -131,7 +131,7 @@ const Script = () => { if (item) { obj.node = item; setExpandedKeys([p as string]); - onSelect([vkey], obj); + onTreeSelect([vkey], obj); } } };