From b64880447ef2de26a2238f56d14cb285e8a0a568 Mon Sep 17 00:00:00 2001 From: junjun Date: Sat, 2 Apr 2022 09:59:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E6=9C=AC=E5=8D=A1?= =?UTF-8?q?=E4=BB=85=E6=94=AF=E6=8C=81=E4=B8=80=E4=B8=AA=E7=BB=B4=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 83d02e9891..a27e6b4191 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1628,6 +1628,11 @@ export default { } } }) + if (view.type === 'label') { + if (view.xaxis.length > 1) { + view.xaxis.splice(1, view.xaxis.length) + } + } if (view.type.startsWith('pie') || view.type.startsWith('funnel') || view.type.startsWith('text') ||