From d4c7160636687abc2e9a9603b47d916c4d6dfc9f Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 9 Apr 2021 18:18:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E6=97=B6=20metirc=20=E5=B8=A6=E4=BA=86id=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/chartBox.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index 9a45a5439..1835b30e5 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -883,6 +883,11 @@ export default { } delete chartParams.panel delete chartParams.children + if (chartParams.elements) { + chartParams.elements.forEach(item => { + delete item.id + }) + } this.$post('visual/panel/chart', chartParams).then(response => { if (response.code === 200) { this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })