From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 28 五月 2025 16:48:52 +0800 Subject: [PATCH] 初始化项目 --- store/bluetooth/index.js | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/store/bluetooth/index.js b/store/bluetooth/index.js new file mode 100644 index 0000000..988b26b --- /dev/null +++ b/store/bluetooth/index.js @@ -0,0 +1,23 @@ +let sysinfo = uni.getSystemInfoSync(); +const Bluetooth = { + state: { + //钃濈墮淇℃伅 + BLEInformation: { + platform: sysinfo.platform || "", + deviceId: "", + writeCharaterId: "", + writeServiceId: "", + notifyCharaterId: "", + notifyServiceId: "", + readCharaterId: "", + readServiceId: "", + } + }, + mutations:{ + BLEInformationSet(state, info){ + state.BLEInformation = info; + } + } +} + +export default Bluetooth; -- Gitblit v1.9.3