auto-save 2026-05-13 20:51 (~7)

This commit is contained in:
2026-05-13 20:51:23 +08:00
parent 700fa24992
commit a8d09010b6
7 changed files with 102 additions and 11 deletions

View File

@@ -960,6 +960,13 @@ export function VideoGenNode({ data, selected }: any) {
if (m.includes("seedance")) return "Seedance"
return model || "Video"
}
const readableVideoError = (error?: string) => {
const e = error || "生成失败"
if (e.includes("/videos") && e.includes("404")) {
return "当前 SKG ezlink 未开通生视频 /videos 端点"
}
return e
}
return (
<div className="relative" style={{ width: 280 }}>
{videos.length > 0 && (
@@ -1075,7 +1082,7 @@ export function VideoGenNode({ data, selected }: any) {
<span className="shrink-0 font-mono text-white/55">{modelLabel(v.model)} · {v.status}</span>
</div>
<div className="line-clamp-3 text-[9.5px] leading-snug text-white/55">
{v.status === "failed" ? (v.error || "生成失败") : v.prompt}
{v.status === "failed" ? readableVideoError(v.error) : v.prompt}
</div>
</div>
</div>