修复bug

This commit is contained in:
zhishi 2026-04-07 04:38:53 +08:00
parent f4d8fe7883
commit 65b2ebaf65

View File

@ -61,13 +61,15 @@ export default router.post(
...(i.id != null ? { id: i.id } : {}), ...(i.id != null ? { id: i.id } : {}),
}); });
} else { } else {
storyboardTrackRecord[i.trackId!] = [{ storyboardTrackRecord[i.trackId!] = [
{
src: i.filePath, src: i.filePath,
fileType: "image", fileType: "image",
sources: "storyboard", sources: "storyboard",
...(i.prompt != null ? { prompt: i.videoDesc } : {}), ...(i.prompt != null ? { prompt: i.videoDesc } : {}),
...(i.id != null ? { id: i.id } : {}), ...(i.id != null ? { id: i.id } : {}),
}]; },
];
} }
}); });
// 按 storyboardId 分组的资产数据key 为 storyboardId // 按 storyboardId 分组的资产数据key 为 storyboardId
@ -143,7 +145,7 @@ export default router.post(
storyboardList: await Promise.all( storyboardList: await Promise.all(
storyboardList.map(async (s) => ({ storyboardList.map(async (s) => ({
...s, ...s,
src: s.filePath ? await u.oss.getFileUrl(s.filePath) : "", src: s.filePath,
})), })),
), ),
trackList, trackList,