From 6d86eaba5497ac6a15fd8ef06ab5934d4e2fab59 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 6 Jul 2023 16:31:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=A2=84=E8=A7=88=E5=A4=8D=E7=94=A8=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=9C=AA=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/components/editor/ComponentWrapper.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue index 58f49bca1c..9a864b18f9 100644 --- a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue @@ -159,7 +159,8 @@ export default { computed: { chart() { if (this.config.propValue?.viewId) { - return JSON.parse(this.panelViewDetailsInfo[this.config.propValue.viewId]) + const viewInfo = this.panelViewDetailsInfo[this.config.propValue.viewId]; + return viewInfo?JSON.parse(viewInfo):null } return null },