feat(aigc): 新增升视频生成类型并修复相关展示逻辑

- 添加生成类型2的“升视频”映射到详情页和记录卡片配置中
- 优化共享作品页面的生成类型文本展示逻辑以适配新类型
- 调整未知生成类型的默认显示文本为“生成作品”
This commit is contained in:
duanshuwen
2026-08-05 19:58:01 +08:00
parent 9f0881a284
commit 8de0038742
3 changed files with 11 additions and 10 deletions

View File

@@ -65,6 +65,7 @@ const pointDialogVisible = ref(false);
const GENERATOR_TYPE_TEXT = {
0: "图片版",
1: "视频版",
2: "升视频",
};
const TASK_STATUS_TEXT = {
@@ -92,7 +93,7 @@ const result = computed(() => {
const imageUrl = record.imageResultUrl || "";
const videoUrl = record.videoResultUrl || "";
const isVideo = [1, 2].includes(Number(record.generatorType));
const isVideo = [1, 2].includes(Number(record.generatorType));
const typeText = getMappedText(GENERATOR_TYPE_TEXT, record.generatorType, "类型");
const statusText = getMappedText(TASK_STATUS_TEXT, record.taskStatus, "状态");
const consumedText =