refactor(annotation): 移除编辑器标签配置装饰逻辑

- 删除了 _decorate_label_config_for_editor 方法调用
- 简化了标签配置获取流程
- 移除了不必要的条件检查逻辑
This commit is contained in:
2026-01-31 14:14:32 +08:00
parent a21a632a4b
commit 2bc48fd465

View File

@@ -166,8 +166,6 @@ class AnnotationEditorService:
label_config = project.configuration.get("label_config")
if not label_config:
label_config = await self._get_label_config(project.template_id)
if label_config:
label_config = self._decorate_label_config_for_editor(label_config)
return label_config
@staticmethod