fix: 视频指示牌显示文件名,多视频显示'2个视频'

This commit is contained in:
thzxx
2026-06-18 13:29:06 +08:00
parent 0aa33d590c
commit 0b2d8414a6
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -185,7 +185,9 @@ export function appendMessageDOM(msg: ChatMessage, index: number): void {
if ((msg as any)._videoFrames && (msg as any)._videoFrames.length > 0) {
const n = (msg as any)._videoFrames.length;
contentHtml += `<div class="msg-video-indicator">🎬 视频帧序列 · ${n} 帧 · 1fps</div>`;
const name = (msg as any)._videoMeta?.fileName || '';
const label = name ? `${name} · ` : '';
contentHtml += `<div class="msg-video-indicator">🎬 ${label}${n} 帧 · 1fps</div>`;
}
if (msg.files && msg.files.length > 0) {