feat(annotation): 添加标注任务预览功能

- 新增 previewTaskData 状态管理预览数据
- 实现 generateExampleData 函数根据对象配置生成示例数据
- 支持多种数据类型(图片、音频、视频、文本等)的示例生成
- 优化预览按钮逻辑,自动生成适配的示例数据
- 移除固定示例数据,使用动态生成的数据进行预览
- 调整模板列表组件的分页参数以修复数据获取问题
This commit is contained in:
2026-01-19 10:32:34 +08:00
parent bc43d442fc
commit 163c93142e
2 changed files with 75 additions and 24 deletions

View File

@@ -71,7 +71,7 @@ const TemplateList: React.FC = () => {
fetchData,
handleFiltersChange,
handleKeywordChange,
} = useFetchData(queryAnnotationTemplatesUsingGet, undefined, undefined, undefined, undefined, 0);
} = useFetchData(queryAnnotationTemplatesUsingGet, undefined, undefined, undefined, undefined);
const handleCreate = () => {
setFormMode("create");