Atualizar web/chat.js
This commit is contained in:
+6
-3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user