fix: 产品特殊协议回显问题
This commit is contained in:
parent
4d6896a4a2
commit
e53c573e6d
|
@ -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); //
|
||||
|
|
Loading…
Reference in New Issue