fix: 网页版增加对话文件支持
This commit is contained in:
@@ -37,6 +37,9 @@ export const useChatStore = defineStore('chat', () => {
|
||||
thinkingStatus: 'end',
|
||||
content: extractThkContentAfter(item.content as string),
|
||||
thinlCollapse: false,
|
||||
// 保留图片和文件信息
|
||||
images: item.images,
|
||||
files: item.files,
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
@@ -8,6 +8,8 @@ export interface FileItem extends FilesCardProps {
|
||||
isUploaded?: boolean; // 是否已上传
|
||||
uploadProgress?: number; // 上传进度
|
||||
base64?: string; // 图片的base64编码
|
||||
fileContent?: string; // 文本文件的内容
|
||||
fileType?: 'image' | 'text'; // 文件类型
|
||||
}
|
||||
|
||||
export const useFilesStore = defineStore('files', () => {
|
||||
|
||||
Reference in New Issue
Block a user