From 3f99e42fc0075177f2e00b7248023e7f29ffbc36 Mon Sep 17 00:00:00 2001 From: Ted <2508067350@qq.com> Date: Fri, 21 Feb 2025 08:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=A3=80?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 1 + app/utils/chat.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 484a27b74..c7f19a3c3 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1573,6 +1573,7 @@ function _Chat() { const imagesData: string[] = []; for (let i = 0; i < files.length; i++) { const file = event.target.files[i]; + console.log("file", file); uploadImageRemote(file) .then((dataUrl) => { imagesData.push(dataUrl); diff --git a/app/utils/chat.ts b/app/utils/chat.ts index efc496f2c..ca6ee31d8 100644 --- a/app/utils/chat.ts +++ b/app/utils/chat.ts @@ -138,7 +138,7 @@ export function uploadImage(file: Blob): Promise { }) .then((res) => res.json()) .then((res) => { - // console.log("res", res); + console.log("upload res", res); if (res?.code == 0 && res?.data) { return res?.data; }