From 70a55f93c24f9b72d9f777ef159a180d0f51acc8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 20 Oct 2020 16:52:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8A=A5=E9=94=99=20=E6=9C=AA=E4=BC=A0=E5=85=A5panelI?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/chartBox.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index e17977580..476a923be 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -701,7 +701,8 @@ }, // 更新图表 updateCharts(params) { - this.$put('panel/' + this.panelId + '/charts', params ? params : this.editChart).then(response2 => { + let panelId=this.panelId?this.panelId:this.chart.panelId; + this.$put('panel/' + panelId + '/charts', params ? params : this.editChart).then(response2 => { if (response2.code === 200) { this.esc(); this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});