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()