diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 34b149c..e2a2f3c 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -2499,7 +2499,6 @@ export default { const { protocol, host, port, endpoint, ...options } = this.connection const connectUrl = `${protocol}://${host}:${port}${endpoint}` this.client = mqtt.connect(connectUrl, options) - if (this.client.on) { this.client.on('connect', () => { this.connecting = true