fix(canvas): 创作工作台 - 恢复连续对话并完善附件、媒体占位与生成分辨率

Fixes #231

Fixes #233
This commit is contained in:
ddCat
2026-08-15 22:01:42 +08:00
parent 11d9d469f5
commit 7804574f9f
15 changed files with 753 additions and 115 deletions

View File

@@ -623,6 +623,7 @@ function normalizeVideoSize(value: string) {
function normalizeVideoResolution(value: string) {
if (value === "low") return "480p";
if (value === "auto" || value === "high" || value === "medium") return "720p";
if (value.toLowerCase() === "2k") return "1440p";
if (value.toLowerCase() === "4k") return "2160p";
const resolution = value.replace(/p$/i, "") || "720";
return `${resolution}p`;