From 7b356b26035f9d267e7208cdc7d7e28c0303d7d1 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 11 Mar 2022 11:05:30 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1666=20=20fix=EF=BC=9A=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=97=B6System=E9=80=89=E9=A1=B9=E4=B8=8B?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=95=88=E9=AA=8C=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/chart/systemChartConfig.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() },