Skip to content

Commit b60941a

Browse files
committed
[Bugfix]去除编辑connect失败多余的提示信息(didi#1044)
1 parent 18e00f0 commit b60941a

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

km-console/packages/layout-clusters-fe/src/pages/MutliClusterPage/AccessCluster.tsx

+6-12
Original file line numberDiff line numberDiff line change
@@ -524,19 +524,13 @@ const ConnectorForm = (props: {
524524
id: initFieldsValue?.id,
525525
jmxProperties: values.jmxProperties ? `{ "jmxPort": "${values.jmxProperties}" }` : undefined,
526526
};
527-
Utils.put(api.batchConnectClusters, [params])
528-
.then((res) => {
529-
// setSelectedTabKey(undefined);
530-
getConnectClustersList();
531-
notification.success({
532-
message: '修改Connect集群成功',
533-
});
534-
})
535-
.catch((error) => {
536-
notification.success({
537-
message: '修改Connect集群失败',
538-
});
527+
Utils.put(api.batchConnectClusters, [params]).then((res) => {
528+
// setSelectedTabKey(undefined);
529+
getConnectClustersList();
530+
notification.success({
531+
message: '修改Connect集群成功',
539532
});
533+
});
540534
};
541535

542536
const onCancel = () => {

0 commit comments

Comments
 (0)