1
0
forked from dyf/APP

添加全局消息监听

This commit is contained in:
liub
2025-08-18 08:38:28 +08:00
parent e95b2466e1
commit 535f4728ea
2 changed files with 29 additions and 8 deletions

21
utils/BleReceive.js Normal file
View 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;
}
}