diff --git a/runtime/datamate-python/app/module/annotation/service/editor.py b/runtime/datamate-python/app/module/annotation/service/editor.py index ac04257..f703bc0 100644 --- a/runtime/datamate-python/app/module/annotation/service/editor.py +++ b/runtime/datamate-python/app/module/annotation/service/editor.py @@ -96,7 +96,12 @@ class AnnotationEditorService: if not supported: unsupported_reason = f"当前仅支持 TEXT,项目数据类型为: {dataset_type or 'UNKNOWN'}" - label_config = await self._get_label_config(project.template_id) + # 优先使用项目配置中的label_config(用户编辑版本),其次使用模板默认配置 + label_config = None + if project.configuration and isinstance(project.configuration, dict): + label_config = project.configuration.get("label_config") + if not label_config: + label_config = await self._get_label_config(project.template_id) return EditorProjectInfo( projectId=project.id,