From 18e00f043ea35d60c9682e2ff4acf698971fc4f5 Mon Sep 17 00:00:00 2001 From: erge Date: Sun, 10 Sep 2023 16:46:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[Bugfix]Connect-JMX=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF(#1044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/MutliClusterPage/AccessCluster.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx b/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx index 28992f47d..c541da9c9 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx @@ -522,7 +522,7 @@ const ConnectorForm = (props: { const params = { ...values, id: initFieldsValue?.id, - jmxProperties: values.jmxProperties ? `{ "jmxProperties": "${values.jmxProperties}" }` : undefined, + jmxProperties: values.jmxProperties ? `{ "jmxPort": "${values.jmxProperties}" }` : undefined, }; Utils.put(api.batchConnectClusters, [params]) .then((res) => { From b60941abc844dcfc88d2f75f2c82b4984b219736 Mon Sep 17 00:00:00 2001 From: erge Date: Sun, 10 Sep 2023 22:31:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[Bugfix]=E5=8E=BB=E9=99=A4=E7=BC=96?= =?UTF-8?q?=E8=BE=91connect=E5=A4=B1=E8=B4=A5=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF(#1044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/MutliClusterPage/AccessCluster.tsx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx b/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx index c541da9c9..50ab0a372 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx @@ -524,19 +524,13 @@ const ConnectorForm = (props: { id: initFieldsValue?.id, jmxProperties: values.jmxProperties ? `{ "jmxPort": "${values.jmxProperties}" }` : undefined, }; - Utils.put(api.batchConnectClusters, [params]) - .then((res) => { - // setSelectedTabKey(undefined); - getConnectClustersList(); - notification.success({ - message: '修改Connect集群成功', - }); - }) - .catch((error) => { - notification.success({ - message: '修改Connect集群失败', - }); + Utils.put(api.batchConnectClusters, [params]).then((res) => { + // setSelectedTabKey(undefined); + getConnectClustersList(); + notification.success({ + message: '修改Connect集群成功', }); + }); }; const onCancel = () => {