diff --git a/ruoyi-ui/src/views/information/board/index.vue b/ruoyi-ui/src/views/information/board/index.vue index 666e1abb..da7725eb 100644 --- a/ruoyi-ui/src/views/information/board/index.vue +++ b/ruoyi-ui/src/views/information/board/index.vue @@ -30,7 +30,7 @@
- +
{{ itm.deviceName }}
@@ -933,20 +933,23 @@ export default { }; getBoardList(param).then((res) => { console.log(res, "查询情报板设备列表"); - if (res.length > 0) { - this.iotBoardList.forEach(item => { - item.list = [] - res.forEach(board =>{ - if (item.devicePixel == board.sceenSize){ + this.iotBoardList.forEach(item => { + item.list = [] + if (res.length > 0) { + res.forEach(board => { + if (item.devicePixel == board.sceenSize) { item.list.push(board) } }) - }) - this.iotBoardActive = this.iotBoardList[0].devicePixel; - this.handleChange(this.iotBoardList[0].devicePixel); - } else { - this.getInfoMode(); - } + + this.iotBoardActive = this.iotBoardList[0].devicePixel; + this.handleChange(this.iotBoardList[0].devicePixel); + } else { + this.getInfoMode(); + } + }) + + this.$forceUpdate(); }); },