Browse Source

feature: 解决报空问题

Damon 8 months atrás
parent
commit
76d5218753
2 changed files with 1 additions and 3 deletions
  1. 0 2
      pages/connectBle/connectBle.js
  2. 1 1
      pages/index/index.js

+ 0 - 2
pages/connectBle/connectBle.js

@@ -27,7 +27,6 @@ Page({
 
   onLoad(options) {
     BtHelper.getInstance().setSearching(true);
-
     var that = this;
     var json = JSON.parse(options.param)
     console.log("要连接设备:", json)
@@ -63,7 +62,6 @@ Page({
 
   connectToDvice() {
     var that = this;
-    console.log("gasdfadsfqwwerqweqrqr=====111==" + data);
     BtHelper.getInstance().connect(that.data.connectDevice, function (data) {
       console.log("连接成功:", data)
       that.setStatus(data ? 3 : 4)

+ 1 - 1
pages/index/index.js

@@ -824,7 +824,7 @@ Page({
       /// 蓝牙ble连接
       connectType: 1,
       deviceId: newDevice.deviceId,
-      name: newDevice.deviceId,
+      name: newDevice.name,
       state: "online",
       ProdModel: newDevice.clientType,
       devName: newDevice.name,