diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue index af5c6086c..a7e0c73ff 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue @@ -804,12 +804,12 @@ export default { }, systemNameChange (index) { if (this.systemNameShow[index].error) { - this.expressionName[index] = this.systemNameShow[index].oldName + this.chartConfig.param.datasource[index].name = this.systemNameShow[index].oldName this.systemNameShow[index].error = '' - } else if (!this.expressionName[index]) { - this.expressionName[index] = this.systemNameShow[index].oldName + } else if (!this.chartConfig.param.datasource[index].name) { + this.chartConfig.param.datasource[index].name = this.systemNameShow[index].oldName } else { - this.systemNameShow[index].oldName = this.expressionName[index] + this.systemNameShow[index].oldName = this.chartConfig.param.datasource[index].name } this.change() },