From 38b1beeef5626dc14554ba81592662d39cd47595 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Thu, 20 Jan 2022 19:07:15 +0800 Subject: [PATCH] =?UTF-8?q?iscs=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs/iscsSystem/config/pis/mainScreen.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/iscs/iscsSystem/config/pis/mainScreen.vue b/src/views/iscs/iscsSystem/config/pis/mainScreen.vue index c5fef83a8..03f557547 100644 --- a/src/views/iscs/iscsSystem/config/pis/mainScreen.vue +++ b/src/views/iscs/iscsSystem/config/pis/mainScreen.vue @@ -138,9 +138,11 @@ export default { resp.data && resp.data.forEach(item => { if (station.code == item.station) { const index = positionMap[item.position]; - children[index].status = 'default'; - this.iscsDeviceMap[item.code] = station.code + '-' + index; - this.deviceMap[station.code + '-' + index] = item; + if ( children[index]) { + children[index].status = 'default'; + this.iscsDeviceMap[item.code] = station.code + '-' + index; + this.deviceMap[station.code + '-' + index] = item; + } } }); }