Skip to content

Commit 60df748

Browse files
committed
fix FE build error caused by recent change
1 parent d73bcdc commit 60df748

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FE/components/Chat/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ const Chat = memo(() => {
408408
newContent[lastContentIndex] = {
409409
...newContent[lastContentIndex],
410410
c: text
411-
};
411+
} as TempFileContent;
412412
} else {
413413
// 插入新的预览位置
414414
newContent.push({ i: '', $type: MessageContentType.tempFileId, c: text });
@@ -450,7 +450,7 @@ const Chat = memo(() => {
450450
...newContent[lastContentIndex],
451451
$type: MessageContentType.fileId,
452452
c: text
453-
};
453+
} as FileContent;
454454
} else {
455455
// 没有预览图片,直接追加最终图片
456456
newContent.push({ i: '', $type: MessageContentType.fileId, c: text });

0 commit comments

Comments
 (0)