From 91d835e6f095530bfa0eae754e6f983110487778 Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Wed, 19 Aug 2026 21:51:24 -0300 Subject: [PATCH] Atualizar web/chat.js --- web/chat.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/chat.js b/web/chat.js index 2311029..2400af1 100644 --- a/web/chat.js +++ b/web/chat.js @@ -45,16 +45,19 @@ async function importExcel() { const form = new FormData(); form.append("file", file); - await fetch(`/api/import_excel/${conversationId}`, { + + const r = await fetch(`/api/import_excel/${conversationId}`, { method: "POST", body: form }); + const data = await r.json(); + console.log("Imported sheets:", data.sheets); + await loadHistory(); } - - + async function loadConversations() { const r = await fetch("/api/conversations");