|
@@ -79,8 +79,9 @@
|
|
|
xBlufi.notifyConnectBle({
|
|
|
isStart: false,
|
|
|
deviceId: item.id,
|
|
|
- name: '',
|
|
|
+ name: 'cx-mxb-wifi',
|
|
|
});
|
|
|
+ xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
|
setTimeout(()=>{
|
|
|
this.$emit('unbindSuccess')
|
|
|
},1000)
|
|
@@ -88,6 +89,17 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ funListenDeviceMsgEvent: function(options) {
|
|
|
+ let that = this
|
|
|
+ switch (options.type) {
|
|
|
+ case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED:
|
|
|
+ that.connected = options.result
|
|
|
+ if (!options.result) {
|
|
|
+ console.log(options,'options')
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|