From d7d576d0216538f1610b20558122df14039ea610 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 27 Sep 2022 17:41:04 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E8=A7=86=E5=9B=BE):=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E5=A4=96=E8=BE=B9=E8=B7=9D=E7=BB=A7=E6=89=BF?= =?UTF-8?q?=E4=BA=86=E4=B9=8B=E5=89=8D=E7=BC=96=E8=BE=91=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/component-style/MarginSelector.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/chart/components/component-style/MarginSelector.vue b/frontend/src/views/chart/components/component-style/MarginSelector.vue index 41ebf2aa2a..4bdb5ef16d 100644 --- a/frontend/src/views/chart/components/component-style/MarginSelector.vue +++ b/frontend/src/views/chart/components/component-style/MarginSelector.vue @@ -117,7 +117,11 @@ export default { } if (customStyle.margin) { this.marginForm = customStyle.margin + } else { + this.marginForm = JSON.parse(JSON.stringify(DEFAULT_MARGIN_STYLE)) } + } else { + this.marginForm = JSON.parse(JSON.stringify(DEFAULT_MARGIN_STYLE)) } },