fix: 网络组件 修复编辑时端口问题
This commit is contained in:
parent
b01cc1bb17
commit
fde1b8b995
|
@ -1365,8 +1365,23 @@ const getDetail = () => {
|
||||||
...cloneDeep(Configuration), //防止编辑时,表单字段不完善,导致输入/选择框新出现时找不到
|
...cloneDeep(Configuration), //防止编辑时,表单字段不完善,导致输入/选择框新出现时找不到
|
||||||
...configuration,
|
...configuration,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const configRef = Store.get('configRef').filter(
|
||||||
|
(item: any) => item.host === '0.0.0.0',
|
||||||
|
);
|
||||||
|
getPortOptions(configRef); //更新端口
|
||||||
} else {
|
} else {
|
||||||
dynamicValidateForm.cluster = cluster;
|
dynamicValidateForm.cluster = cluster;
|
||||||
|
//遍历数据更新对应的本地端口
|
||||||
|
setTimeout(() => {
|
||||||
|
cluster.forEach((item: any, index: number) => {
|
||||||
|
const { host } = item.configuration;
|
||||||
|
let configRef = Store.get('configRef').filter(
|
||||||
|
(item: any) => item.host === host,
|
||||||
|
);
|
||||||
|
getPortOptions(configRef, index);
|
||||||
|
});
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dynamicValidateForm.cluster.length === 1) {
|
if (dynamicValidateForm.cluster.length === 1) {
|
||||||
|
|
Loading…
Reference in New Issue