fix: 产品特殊协议回显问题

This commit is contained in:
leiqiaochu 2023-03-21 15:45:18 +08:00
parent 4d6896a4a2
commit e53c573e6d
1 changed files with 11 additions and 1 deletions

View File

@ -913,7 +913,6 @@ const submitData = async () => {
visible.value = false;
queryParams.value = {};
});
}
} else {
message.error('请选择接入方式');
@ -956,6 +955,17 @@ const getData = async (accessId?: string) => {
metadata.value = (resp?.result[0] as ConfigMetadata) || {
properties: [],
};
// udp
if (metadata.value?.properties) {
metadata.value?.properties.forEach((item) => {
if (
item.name === '流传输模式' && (!productStore.current?.configuration || !productStore.current?.configuration.hasOwnProperty(item.name))
) {
formData.data[item.name] =
item.type.expands?.defaultValue;
}
});
}
if (accessId) {
//
getGuide(resp?.result.length); //