今天发现安卓手机出现大量以下错误,在苹果手机又没有问题。。。。请问如何处理?
VM22:2 Uncaught (in promise) thirdScriptError
{"errMsg":"setKeepScreenOn:fail:has not set screen"}
Object
VM22:2 Uncaught (in promise) thirdScriptError
{"errMsg":"hideLoading:fail:toast can't be found"}
Object
VM22:2 Uncaught (in promise) thirdScriptError
{"errMsg":"hideToast:fail:toast can't be found"}
Object
openBluetoothAdapter() {
let _this = this;
return new Promise((resolve, reject) => {
wx.openBluetoothAdapter({
success(res) {
_this.startBluetoothDevicesDiscovery().then(res => {
resolve(res)
});
},
fail(res) {
wx.hideLoading();//////应该是这里会报错的。。。
wx.showModal({
title: '温馨提示',
showCancel: false,
//content: '请先打开蓝牙再进行操作'
content: res.errMsg,
});
reject(res)
}
});
});
},
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
let _this = this;
return new Promise((resolve, reject) => {
wx.openBluetoothAdapter({
success(res) {
_this.startBluetoothDevicesDiscovery().then(res => {
resolve(res)
});
},
fail(res) {
wx.hideLoading();//////应该是这里会报错的。。。
wx.showModal({
title: '温馨提示',
showCancel: false,
//content: '请先打开蓝牙再进行操作'
content: res.errMsg,
});
reject(res)
}
});
});
},
https://developers.weixin.qq.com/s/W8kD0GmM7RhX