|
@@ -777,7 +777,7 @@
|
|
|
if (this.onlineDevice.length > 0) {
|
|
|
if (this.isCannotBeOnline(item.device_type)) {
|
|
|
if (item.eth_mac) {
|
|
|
- const mac = this.onlineDevice.filter(p => p.toLowerCase() === item.eth_mac.toLowerCase())[0]
|
|
|
+ const mac = this.onlineDevice.filter(p => p != null && (p.toLowerCase() === item.eth_mac.toLowerCase()))[0]
|
|
|
// console.log('在线设备1', mac)
|
|
|
if (mac !== undefined && mac !== null) {
|
|
|
item['online_state'] = this.$t('deviceManage.connectTrue')
|