fix: 网页版增加对话文件支持

This commit is contained in:
Gsh
2025-12-13 23:08:11 +08:00
parent c073868989
commit 944626960b
7 changed files with 1022 additions and 136 deletions

View File

@@ -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,
};
});
};

View File

@@ -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', () => {