From a98cfce449c7a493e89b6535943cd5889ec8d241 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 30 Sep 2021 15:30:38 +0800 Subject: [PATCH] =?UTF-8?q?CN-193=20feat:=20=E4=BF=AE=E5=A4=8DtrafficSumma?= =?UTF-8?q?ry=E4=B8=89=E4=B8=AA=E5=9B=BE=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/Chart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) } })