From 8e06a36460a707c7221107be9f5ee7ebe852645c Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 23 Jan 2026 16:16:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(annotation):=20=E4=BF=AE=E5=A4=8D=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E9=85=8D=E7=BD=AE=E6=A0=91=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 Tree 组件添加 key 属性以确保正确的组件实例化 - 启用 defaultExpandAll 属性以默认展开所有节点 - 保持拖拽功能在结构锁定状态下的正常工作 --- .../components/TemplateConfigurationTreeEditor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/DataAnnotation/components/TemplateConfigurationTreeEditor.tsx b/frontend/src/pages/DataAnnotation/components/TemplateConfigurationTreeEditor.tsx index eef9984..99f5099 100644 --- a/frontend/src/pages/DataAnnotation/components/TemplateConfigurationTreeEditor.tsx +++ b/frontend/src/pages/DataAnnotation/components/TemplateConfigurationTreeEditor.tsx @@ -707,11 +707,13 @@ const TemplateConfigurationTreeEditor = ({ )} { if (keys.length > 0) setSelectedId(String(keys[0])); }} + defaultExpandAll draggable={!isStructureLocked} onDrop={onDrop} blockNode