From e3c3a9059b54fae36c16505a9344a113b6641dd4 Mon Sep 17 00:00:00 2001 From: "hong.yang" Date: Thu, 16 Nov 2023 10:21:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DEchart=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E7=BB=84=E4=BB=B6=E9=85=8D=E7=BD=AE=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E8=A2=AB=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-room-ui/packages/RemoteComponents/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data-room-ui/packages/RemoteComponents/index.vue b/data-room-ui/packages/RemoteComponents/index.vue index 0a250637..57c155b6 100644 --- a/data-room-ui/packages/RemoteComponents/index.vue +++ b/data-room-ui/packages/RemoteComponents/index.vue @@ -171,12 +171,15 @@ export default { option[field] = set.value } } else { + // 如果没有这个属性,则创建该属性,并赋值为空对值 + if (!option[field]) { + option[field] = {} + } option = option[field] } }) } }) - config.option = { ...config.option, ...option } return config }, dataFormatting (config, data) {