fix: 处理参数为空时 传递之前参数的问题

This commit is contained in:
zhangyu
2021-07-09 17:43:03 +08:00
parent 95af9160a7
commit 3e1051c43e

View File

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