fix: 附件名称移除emoji,保留原图片URL用于AI多图融合
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-02 12:18:15 +08:00
parent 7f67259c94
commit d169a3e931

View File

@ -319,10 +319,10 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
currentAttachments.length + i
);
// 添加到附件列表(带物品信息)
// 添加到附件列表(带物品信息,原图片 URL 会发送给 AI 用于多图融合编辑)
currentAttachments.push({
url: picked.imageUrl,
name: `🎯 ${picked.objectName}`,
url: picked.imageUrl, // 原图片 URL
name: `${picked.objectName}-${picked.objectPosition}`, // 物品名称-位置
contentType: 'image/jpeg',
pickedObject: {
objectName: picked.objectName,