From 9b567d37029bf924de7834fe00da052fe1b7c259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=88=E7=94=9F?= <806743318@qq.com> Date: Tue, 10 May 2022 02:22:35 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20ballcat-codegen-frontend/src/api/g?= =?UTF-8?q?en/datasource-config/index.ts.=20:bug:=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ballcat-codegen-frontend/src/api/gen/datasource-config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballcat-codegen-frontend/src/api/gen/datasource-config/index.ts b/ballcat-codegen-frontend/src/api/gen/datasource-config/index.ts index 2acf0bb..40d6bbb 100644 --- a/ballcat-codegen-frontend/src/api/gen/datasource-config/index.ts +++ b/ballcat-codegen-frontend/src/api/gen/datasource-config/index.ts @@ -37,5 +37,5 @@ export function updateDatasourceConfig(data: DataSourceConfig) { * 删除数据源配置 */ export function removeDatasourceConfig(id?: number) { - return request.get>(`/gen/datasource-config/${id}`) + return request.delete>(`/gen/datasource-config/${id}`) } -- Gitee From b6388f954084dfa589b348fb3363fc691a56504d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=88=E7=94=9F?= <806743318@qq.com> Date: Tue, 10 May 2022 06:09:43 +0000 Subject: [PATCH 2/2] =?UTF-8?q?:sparkles:=20=E5=A2=9E=E5=8A=A0=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=90=8E=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/gen/datasource-config/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ballcat-codegen-frontend/src/views/gen/datasource-config/index.vue b/ballcat-codegen-frontend/src/views/gen/datasource-config/index.vue index 1c1548e..c8ab1f1 100644 --- a/ballcat-codegen-frontend/src/views/gen/datasource-config/index.vue +++ b/ballcat-codegen-frontend/src/views/gen/datasource-config/index.vue @@ -126,7 +126,10 @@ const handleDel = (record: DataSourceConfig) => { doRequest({ request: removeDatasourceConfig(record.id), - successMessage: '删除成功!' + successMessage: '删除成功!', + onSuccess() { + tableState.loadData() + } }) } -- Gitee