From c4b5da234785c2ed5251a0a0a476074be4c1fd79 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 13 Apr 2022 12:53:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=87=E6=A0=87=E5=8D=A1=E9=98=88?= =?UTF-8?q?=E5=80=BC=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/normal/LabelNormal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/chart/components/normal/LabelNormal.vue b/frontend/src/views/chart/components/normal/LabelNormal.vue index 3e09cddfb0..f15c2b1c67 100644 --- a/frontend/src/views/chart/components/normal/LabelNormal.vue +++ b/frontend/src/views/chart/components/normal/LabelNormal.vue @@ -174,7 +174,7 @@ export default { colorThreshold(valueColor) { if (this.chart.senior) { const senior = JSON.parse(this.chart.senior) - if (senior.threshold.labelThreshold && senior.threshold.labelThreshold.length > 0) { + if (senior.threshold && senior.threshold.labelThreshold && senior.threshold.labelThreshold.length > 0) { const value = this.chart.data.series[0].data[0] for (let i = 0; i < senior.threshold.labelThreshold.length; i++) { let flag = false