summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenjinsong <[email protected]>2021-09-30 15:30:38 +0800
committerchenjinsong <[email protected]>2021-09-30 15:30:38 +0800
commita98cfce449c7a493e89b6535943cd5889ec8d241 (patch)
tree0080225ec4bdf5943350f8f11d8d1d847576d891
parent7cc59a7f2f4047a56db430bb4dba12d546162428 (diff)
CN-193 feat: 修复trafficSummary三个图报错的问题
-rw-r--r--src/views/charts/Chart.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue
index 23f75562..2525388b 100644
--- a/src/views/charts/Chart.vue
+++ b/src/views/charts/Chart.vue
@@ -1062,7 +1062,7 @@ export default {
this.chartOption.series = response.data.result.map(r => {
return {
...seriesTemplate,
- name: legendMapping[`${this.entity.ip ? 'ip_' : ''}${r.legend}`] ? legendMapping[`${this.entity.ip ? 'ip_' : ''}${r.legend}`] : lineToSpace(r.legend),
+ name: legendMapping[`${this.entity && this.entity.ip ? 'ip_' : ''}${r.legend}`] ? legendMapping[`${this.entity && this.entity.ip ? 'ip_' : ''}${r.legend}`] : lineToSpace(r.legend),
data: r.values.map(v => [Number(v[0]) * 1000, Number(v[1]), chartParams.unitType])
}
})