修复一个Uniapp蓝牙的坑,App首页蓝牙状态功能添加
This commit is contained in:
@ -48,7 +48,7 @@
|
||||
</view>
|
||||
|
||||
<view class="lblTitle">
|
||||
<text>搜索设备</text>
|
||||
<text>发现设备:{{deviceCnt}}</text>
|
||||
<view @click="refreshBleList()">刷新</view>
|
||||
</view>
|
||||
<view class="lblTitle">
|
||||
@ -163,7 +163,12 @@
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
deviceCnt:function(){
|
||||
let arr=this.EquipMents.filter(item=>{
|
||||
return item.name.toLowerCase().indexOf(this.search.toLowerCase())>-1;
|
||||
});
|
||||
return arr.length;
|
||||
}
|
||||
},
|
||||
onHide: function() {
|
||||
this.Status.isPageHidden = true;
|
||||
|
||||
Reference in New Issue
Block a user