From 3e1051c43e49d10bf0def5c3f96db05974add51d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 9 Jul 2021 17:43:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=20=E4=BC=A0=E9=80=92=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E5=8F=82=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/chartBox.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index b663fa504..72aa50e05 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -1122,6 +1122,8 @@ export default { this.expressions.forEach((expr, i) => { this.editChart.elements.push({ id: this.elementIds[i], expression: expr, type: 'expert', legend: this.legends[i] }) }) + } else { + this.editChart.elements = [] } if (this.editChart.id) { this.updateCharts()