fix(web): 成片库卡片查重率显示 "-" — mapVideoToProductItem 硬编码 undefined #1608

Merged
xiaoxia merged 1 commits from fix/web-duplicate-rate-mapping into develop 2026-09-01 15:46:12 +08:00
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -71,4 +71,5 @@ export interface VideoItem {
generation_params: Record<string, unknown>
download_url: string
generated_at: string
duplicate_rate?: number
}
+1 -2
View File
@@ -29,7 +29,6 @@ export function mapVideoToProductItem(video: VideoItem): ProductItem {
// 后端字段名为 generated_at,映射为 created_at 供前端统一使用
created_at: video.generated_at,
updated_at: video.generated_at,
// 后端 /videos 接口暂无 duplicate_rate 字段
duplicate_rate: undefined,
duplicate_rate: video.duplicate_rate,
}
}