From f13e3589dddc2b6fcc24ac12df4480d89dfbca9b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 25 Nov 2022 16:06:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=84=E4=BB=B6=E6=82=AC=E6=B5=AE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AF=B9=E5=AD=98=E9=87=8F=E5=9C=B0=E5=9B=BE=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/customComponent/UserView.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/canvas/customComponent/UserView.vue b/frontend/src/components/canvas/customComponent/UserView.vue index 2c5988c915..d72a517904 100644 --- a/frontend/src/components/canvas/customComponent/UserView.vue +++ b/frontend/src/components/canvas/customComponent/UserView.vue @@ -574,6 +574,9 @@ export default { const updateParams = { 'id': this.chart.id } if (param.custom === 'customAttr') { const sourceCustomAttr = JSON.parse(this.sourceCustomAttrStr) + if (!sourceCustomAttr[param.property]) { + this.$set(sourceCustomAttr, param.property, {}) + } sourceCustomAttr[param.property][param.value.modifyName] = param.value[param.value.modifyName] this.sourceCustomAttrStr = JSON.stringify(sourceCustomAttr) this.chart.customAttr = this.sourceCustomAttrStr