onBluetoothDeviceFound: function () {
var t = this;
wx.onBluetoothDeviceFound(function (i) {//搜索到新设备事件回调函数
i.devices.forEach(function (i) {
if (i.name || i.localName) {
var c = t.devices, a = e(c, "deviceId", i.deviceId), s = {};
-1 === a ? s["devices[".concat(c.length, "]")] = i : s["devices[".concat(a, "]")] = i;
t.setData(s);//setData is not a function
}
}
);
});
},
仍然报错t.setData is not a function
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。