diff --git a/src/renderer/src/components/Devices/index.vue b/src/renderer/src/components/Devices/index.vue index 1136f55..ae60255 100644 --- a/src/renderer/src/components/Devices/index.vue +++ b/src/renderer/src/components/Devices/index.vue @@ -180,7 +180,7 @@ export default { this.getDeviceData() - if (type === 'add' && !isIPWithPort(ret.id)) { + if (type === 'add' && !isIPWithPort(ret.id) && ret.$host) { this.formData = { ...this.formData, host: ret.$host,