From 8db1f439822a95e1b7836f6a51a771655e9b0d63 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 17 Jan 2024 17:07:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/dataset.ts | 2 +- ui/src/components/ai-chat/index.vue | 25 +++---------------- ui/src/views/application/CreateAndSetting.vue | 13 ++++++++++ 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index 1d6b92d17..a95395b45 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -157,7 +157,7 @@ const putSyncWebDateset: ( sync_type: string, loading?: Ref ) => Promise> = (dataset_id, sync_type, loading) => { - return put(`${prefix}/${dataset_id}/sync_web`, { sync_type }, loading) + return put(`${prefix}/${dataset_id}/sync_web`, undefined, { sync_type }, loading) } export default { diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index f86700b5b..d422285c0 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -29,29 +29,7 @@ :modelValue="item" /> - - -