修复蓝牙配对时,连接成功马上断开,再次连接提示正在连接中的问题
This commit is contained in:
@ -624,6 +624,9 @@
|
||||
|
||||
this.$watch("formData.sta_PowerPercent", (newVal, oldVal) => {
|
||||
console.log("电量发生变化");
|
||||
if(!newVal){
|
||||
return;
|
||||
}
|
||||
if (newVal <= 20 && (this.formData.sta_system === 2 || this.formData.sta_system === 0)) {
|
||||
//电量在20%及以及下,且是未充电状态提醒
|
||||
showPop({
|
||||
|
||||
@ -310,15 +310,12 @@
|
||||
if (these.Status.isPageHidden) {
|
||||
return;
|
||||
}
|
||||
// console.log("处理蓝牙断开连接");
|
||||
|
||||
|
||||
these.refreshLinked();
|
||||
|
||||
setTimeout(() => {
|
||||
hideLoading(these);
|
||||
console.log("处理蓝牙断开连接");
|
||||
if(res.deviceId==this.item.deviceId){
|
||||
these.item.deviceId = null;
|
||||
these.refreshLinked();
|
||||
clearInterval(these.Status.intval);
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
}, pagePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user