fix: 网络组件 修复编辑时端口问题

This commit is contained in:
jackhoo_98 2023-04-01 14:02:58 +08:00
parent b01cc1bb17
commit fde1b8b995
1 changed files with 15 additions and 0 deletions

View File

@ -1365,8 +1365,23 @@ const getDetail = () => {
...cloneDeep(Configuration), ///
...configuration,
};
const configRef = Store.get('configRef').filter(
(item: any) => item.host === '0.0.0.0',
);
getPortOptions(configRef); //
} else {
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) {