From fbd9dcb607f14f8983badb6c885c728ef7cd6d67 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 2 Apr 2024 19:37:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/application.ts | 2 +- ui/src/api/log.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index 7cc99fabc..888e6f495 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -170,7 +170,7 @@ const getChatOpen: (applicaiton_id: String) => Promise> = (applicait * chat_id: string * data */ -const postChatMessage: (chat_id: string, data: any) => Promise = (chat_id, message) => { +const postChatMessage: (chat_id: string, data: any) => Promise = (chat_id, data) => { return postStream(`/api${prefix}/chat_message/${chat_id}`, data) } diff --git a/ui/src/api/log.ts b/ui/src/api/log.ts index 5135ccb85..77131fff6 100644 --- a/ui/src/api/log.ts +++ b/ui/src/api/log.ts @@ -29,14 +29,6 @@ const getChatLog: ( loading ) } -const exportChatLog: ( - applicaiton_id: string, - applicantion_name: string, - param: any, - loading?: Ref -) => Promise = (applicaiton_id, applicantion_name, param, loading) => { - exportExcel(applicantion_name, `${prefix}/${applicaiton_id}/chat/export`, param, loading) -} const exportChatLog: ( applicaiton_id: string,