添加全局消息监听
This commit is contained in:
21
utils/BleReceive.js
Normal file
21
utils/BleReceive.js
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
class BleReceive {
|
||||
constructor() {
|
||||
this.StorageKey = "linkedDevices";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
let instance = null;
|
||||
export default {
|
||||
getBleReceive: function(found, receive) {
|
||||
if (!instance) {
|
||||
instance = new BleReceive();
|
||||
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user