修改部份ui

This commit is contained in:
Azmat@qq.com
2026-08-18 18:32:19 +08:00
parent dfe94a923e
commit 18b3927817
19 changed files with 2151 additions and 681 deletions
+6
View File
@@ -1766,6 +1766,12 @@ export function PipelinePage(props: {
onNotify?.("error", "只支持 mp4 / mov / m4v / webm 四种视频格式");
return;
}
// 与后端 video_digest.MAX_UPLOAD_BYTES 对齐;超了别发请求,否则网关直接 413。
const VIDEO_DIGEST_MAX_BYTES = 200 * 1024 * 1024;
if (file.size > VIDEO_DIGEST_MAX_BYTES) {
onNotify?.("error", "视频不能超过 200MB,请压缩后再传");
return;
}
setVideoDigestBusy(true);
pushMsg("user", `已上传视频《${file.name}》`);
pushMsg("ai", "正在抽帧拆解这条视频,大约需要半分钟…");