体验优化添加失败时的提醒
This commit is contained in:
@ -886,8 +886,9 @@
|
||||
ble.disconnectDevice().finally(dis => {
|
||||
|
||||
ble.StopSearch().finally(res => {
|
||||
|
||||
this.EquipMents = [];
|
||||
|
||||
setTimeout(()=>{
|
||||
this.EquipMents = [];
|
||||
this.PairEquip = [];
|
||||
ble.StartSearch().then(result => {
|
||||
|
||||
@ -895,6 +896,8 @@
|
||||
console.error("err=", err);
|
||||
MsgError("出现错误:" + err.msg, '', these);
|
||||
});
|
||||
},200);
|
||||
|
||||
}).catch(ex => {
|
||||
console.error("ex=", ex);
|
||||
MsgError("出现错误:" + ex.msg, '', these);
|
||||
@ -1023,6 +1026,9 @@
|
||||
}).catch((ex) => {
|
||||
if (index == total) {
|
||||
console.log("连接了N次都没连上");
|
||||
updateLoading(this, {
|
||||
text: ex.msg
|
||||
});
|
||||
reject(ex);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user