批量报警,获取设备实时状态

This commit is contained in:
fengerli
2025-08-16 17:37:24 +08:00
parent 64529bf573
commit 823c54aed7
4 changed files with 465 additions and 388 deletions

View File

@ -249,14 +249,10 @@
},
onLoad() {
this.onIntall()
// 绑定页面做了监听,新增成功,刷新页面
uni.$on('refreshDeviceList', () => {
this.onIntall()
});
},
beforeDestroy() {
// 组件销毁前移除监听器
uni.$off('refreshDeviceList');
},
}
</script>