批量报警,获取设备实时状态
This commit is contained in:
@ -249,14 +249,10 @@
|
||||
},
|
||||
onLoad() {
|
||||
this.onIntall()
|
||||
// 绑定页面做了监听,新增成功,刷新页面
|
||||
uni.$on('refreshDeviceList', () => {
|
||||
this.onIntall()
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁前移除监听器
|
||||
uni.$off('refreshDeviceList');
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user