fix: 文件上传优化
This commit is contained in:
@@ -274,6 +274,7 @@ async function startSSE(chatContent: string) {
|
||||
type: 'image_url',
|
||||
image_url: {
|
||||
url: fileItem.base64, // 使用base64
|
||||
name: fileItem.name, // 保存图片名称
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -479,7 +480,6 @@ function handleImagePreview(url: string) {
|
||||
<Document />
|
||||
</el-icon>
|
||||
<span class="file-name">{{ file.name }}</span>
|
||||
<span class="file-size">{{ (file.size / 1024).toFixed(2) }} KB</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 文本内容 -->
|
||||
|
||||
Reference in New Issue
Block a user