diff --git a/frontend/src/pages/DataAnnotation/Create/components/CreateAnnotationTaskDialog.tsx b/frontend/src/pages/DataAnnotation/Create/components/CreateAnnotationTaskDialog.tsx index 0a1146d..2a3fefd 100644 --- a/frontend/src/pages/DataAnnotation/Create/components/CreateAnnotationTaskDialog.tsx +++ b/frontend/src/pages/DataAnnotation/Create/components/CreateAnnotationTaskDialog.tsx @@ -19,7 +19,8 @@ import { queryAnnotationTemplatesUsingGet, } from "../../annotation.api"; import { DatasetType, type Dataset } from "@/pages/DataManagement/dataset.model"; -import { DataType, type AnnotationTemplate, type AnnotationTask } from "../../annotation.model"; +import { DataType, type AnnotationTemplate } from "../../annotation.model"; +import type { AnnotationTaskListItem } from "../../annotation.const"; import LabelStudioEmbed from "@/components/business/LabelStudioEmbed"; import TemplateConfigurationTreeEditor from "../../components/TemplateConfigurationTreeEditor"; import { useTagConfig } from "@/hooks/useTagConfig"; @@ -29,7 +30,7 @@ interface AnnotationTaskDialogProps { onClose: () => void; onRefresh: () => void; /** 编辑模式:传入要编辑的任务数据 */ - editTask?: AnnotationTask | null; + editTask?: AnnotationTaskListItem | null; } type DatasetOption = Dataset & { icon?: ReactNode };