fix: bug#13489

This commit is contained in:
xieyonghong 2023-05-09 11:30:52 +08:00
parent 8339b37b2c
commit 618309d7b0
1 changed files with 1 additions and 1 deletions

View File

@ -1327,7 +1327,7 @@ const getSupports = async () => {
label: item.name, label: item.name,
value: item.id, value: item.id,
})); }));
if (!typeOptions.value.every((item : any) => item.value === 'UDP')) { if (!typeOptions.value.every((item : any) => item.value === 'UDP') && !NetworkType) {
formData.value.type = typeOptions.value[0].value formData.value.type = typeOptions.value[0].value
} }
} }