设备监控loading问题anotherName字段空判断
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user