mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
[BugFix]JMX端口维护信息错误
This commit is contained in:
@@ -537,7 +537,7 @@ const ConnectorForm = (props: {
|
|||||||
setSelectedTabKey(undefined);
|
setSelectedTabKey(undefined);
|
||||||
try {
|
try {
|
||||||
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
|
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
|
||||||
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxProperties });
|
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxPort });
|
||||||
} catch {
|
} catch {
|
||||||
form.setFieldsValue({ ...initFieldsValue });
|
form.setFieldsValue({ ...initFieldsValue });
|
||||||
}
|
}
|
||||||
@@ -546,7 +546,7 @@ const ConnectorForm = (props: {
|
|||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
try {
|
try {
|
||||||
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
|
const jmxPortInfo = JSON.parse(initFieldsValue.jmxProperties) || {};
|
||||||
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxProperties });
|
form.setFieldsValue({ ...initFieldsValue, jmxProperties: jmxPortInfo.jmxPort });
|
||||||
} catch {
|
} catch {
|
||||||
form.setFieldsValue({ ...initFieldsValue });
|
form.setFieldsValue({ ...initFieldsValue });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user