From 5fdbe78794830196c1940888ab84df85da509933 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 25 Jan 2024 18:13:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8C=87=E6=A0=87=E5=8D=A1):=20=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6:=20=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E6=8B=96=E4=B8=80=E4=B8=AA=E6=8C=87=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/editor/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index f8294724a7..798925d287 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -470,6 +470,12 @@ const addAxis = (e, axis: AxisType) => { emitter.emit('removeAxis', { axisType: 'yAxis', axis, editType: 'remove' }) } } + if (view.value.type === 'indicator') { + if (view.value?.yAxis?.length > 1) { + const axis = view.value.yAxis.splice(1) + emitter.emit('removeAxis', { axisType: 'yAxis', axis, editType: 'remove' }) + } + } } const addXaxis = e => {