体验优化添加失败时的提醒
This commit is contained in:
@ -471,6 +471,7 @@
|
||||
these.formData.bleStatu = true;
|
||||
}).catch(ex => {
|
||||
these.formData.bleStatu = 'err';
|
||||
MsgError("连接错误:"+ex.msg,"确定",these);
|
||||
});
|
||||
return;
|
||||
}
|
||||
@ -583,6 +584,8 @@
|
||||
updateLoading(these, {
|
||||
text: ex.msg
|
||||
})
|
||||
these.formData.bleStatu = 'err';
|
||||
MsgError("连接错误:"+ex.msg,"确定",these);
|
||||
}).finally(() => {
|
||||
setTimeout(() => {
|
||||
hideLoading(these);
|
||||
@ -2023,6 +2026,9 @@
|
||||
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId).then(
|
||||
res => {
|
||||
these.formData.bleStatu = true;
|
||||
}).catch(ex=>{
|
||||
these.formData.bleStatu = 'err';
|
||||
MsgError("连接错误:"+ex.msg,"确定",these);
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -2043,6 +2049,8 @@
|
||||
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId).then(res => {
|
||||
console.log("连接成功")
|
||||
this.formData.bleStatu = true;
|
||||
}).catch(ex=>{
|
||||
MsgError("连接错误:"+ex.msg,"确定",these);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user