We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d73bcdc commit 60df748Copy full SHA for 60df748
1 file changed
src/FE/components/Chat/Chat.tsx
@@ -408,7 +408,7 @@ const Chat = memo(() => {
408
newContent[lastContentIndex] = {
409
...newContent[lastContentIndex],
410
c: text
411
- };
+ } as TempFileContent;
412
} else {
413
// 插入新的预览位置
414
newContent.push({ i: '', $type: MessageContentType.tempFileId, c: text });
@@ -450,7 +450,7 @@ const Chat = memo(() => {
450
451
$type: MessageContentType.fileId,
452
453
+ } as FileContent;
454
455
// 没有预览图片,直接追加最终图片
456
newContent.push({ i: '', $type: MessageContentType.fileId, c: text });
0 commit comments