一公司人员定位无数据bug修复
parent
ffe9fdd476
commit
8e64a50140
|
@ -2499,7 +2499,6 @@ export default {
|
||||||
const { protocol, host, port, endpoint, ...options } = this.connection
|
const { protocol, host, port, endpoint, ...options } = this.connection
|
||||||
const connectUrl = `${protocol}://${host}:${port}${endpoint}`
|
const connectUrl = `${protocol}://${host}:${port}${endpoint}`
|
||||||
this.client = mqtt.connect(connectUrl, options)
|
this.client = mqtt.connect(connectUrl, options)
|
||||||
|
|
||||||
if (this.client.on) {
|
if (this.client.on) {
|
||||||
this.client.on('connect', () => {
|
this.client.on('connect', () => {
|
||||||
this.connecting = true
|
this.connecting = true
|
||||||
|
|
Loading…
Reference in New Issue