diff --git a/src/views/govern/device/control/detail.vue b/src/views/govern/device/control/detail.vue index 4b04e9c..bba7037 100644 --- a/src/views/govern/device/control/detail.vue +++ b/src/views/govern/device/control/detail.vue @@ -151,7 +151,7 @@ const init = () => { type: 'line', showSymbol: false, smooth: true, - name: item[0].anotherName + name: item[0]?.anotherName } }) }, @@ -174,7 +174,7 @@ const init = () => { }, legend: { data: res.data.map((item: any[]) => { - return item[0].anotherName + return item[0]?.anotherName }) }, yAxis: {