From d6a8b44606f439fe49ae420ac5144bfb0f3b0ae7 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 24 Dec 2025 15:04:31 +0800 Subject: [PATCH] style: update style --- frontend/src/api/chat.ts | 2 +- frontend/src/api/datasource.ts | 2 +- frontend/src/views/ds/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/api/chat.ts b/frontend/src/api/chat.ts index 918e58e3..d64fee6d 100644 --- a/frontend/src/api/chat.ts +++ b/frontend/src/api/chat.ts @@ -324,7 +324,7 @@ export const chatApi = { renameChat: (chat_id: number | undefined, brief: string): Promise => { return request.post('/chat/rename', { id: chat_id, brief: brief }) }, - deleteChat: (id: number | undefined, brief: string): Promise => { + deleteChat: (id: number | undefined, brief: any): Promise => { return request.delete(`/chat/${id}/${brief}`) }, analysis: (record_id: number | undefined, controller?: AbortController) => { diff --git a/frontend/src/api/datasource.ts b/frontend/src/api/datasource.ts index c14b13cd..7f2fb782 100644 --- a/frontend/src/api/datasource.ts +++ b/frontend/src/api/datasource.ts @@ -8,7 +8,7 @@ export const datasourceApi = { add: (data: any) => request.post('/datasource/add', data), list: () => request.get('/datasource/list'), update: (data: any) => request.post('/datasource/update', data), - delete: (id: number, name: str) => request.post(`/datasource/delete/${id}/${name}`), + delete: (id: number, name: string) => request.post(`/datasource/delete/${id}/${name}`), getTables: (id: number) => request.post(`/datasource/getTables/${id}`), getTablesByConf: (data: any) => request.post('/datasource/getTablesByConf', data), getFields: (id: number, table_name: string) => diff --git a/frontend/src/views/ds/index.vue b/frontend/src/views/ds/index.vue index 41563894..7acacfee 100644 --- a/frontend/src/views/ds/index.vue +++ b/frontend/src/views/ds/index.vue @@ -109,7 +109,7 @@ const deleteDs = (item: any) => { type: 'warning', }) .then(() => { - datasourceApi.delete(item.id).then(() => { + datasourceApi.delete(item.id, item.name).then(() => { refresh() }) })