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..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 @@ -522,21 +522,15 @@ 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) => { - // 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 = () => {