From fde1b8b995a006cdf83d40444642483652a51220 Mon Sep 17 00:00:00 2001 From: jackhoo_98 Date: Sat, 1 Apr 2023 14:02:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E7=BB=9C=E7=BB=84=E4=BB=B6=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E6=97=B6=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/link/Type/Detail/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/link/Type/Detail/index.vue b/src/views/link/Type/Detail/index.vue index 7204ba69..7a58cd4e 100644 --- a/src/views/link/Type/Detail/index.vue +++ b/src/views/link/Type/Detail/index.vue @@ -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) {