fix:修复snmp类型的module无法回显的问题

This commit is contained in:
wangwenrui
2020-08-25 17:53:01 +08:00
parent 39b69e77f0
commit 6f1c074a4c

View File

@@ -618,6 +618,7 @@
immediate: true,
deep: true,
handler(n, o) {
console.log('post module',n)
this.editModule = JSON.parse(JSON.stringify(n));
}
},
@@ -636,6 +637,8 @@
}
} else if (!n.id && n.type && n.type.toLowerCase() == 'http') {
n.port = 9100;
}else{
this.reparseSnmpParam(n)
}
if (!n.type) {
n.type = 'http';