From 0ffc9708fad8bf239c718ba4a2662624bb1ccc6d Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 9 Feb 2022 14:53:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20defaultLineData.js=20elements=20?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chart/defaultLineData.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/chart/defaultLineData.js b/nezha-fronted/src/components/chart/defaultLineData.js index b45477f1f..e001a0879 100644 --- a/nezha-fronted/src/components/chart/defaultLineData.js +++ b/nezha-fronted/src/components/chart/defaultLineData.js @@ -41,7 +41,18 @@ const data = { seq: null, x: 0, y: 12, - elements: [], + elements: [ + { + id: '', + chartId: '', + expression: '', + type: 'expert', + legend: '', + buildIn: '', + name: 'A', + state: 1 + } + ], sync: null, panel: { id: 1244,