From 87cf205f249a9745cd7a8cd18bafb77b15bd27a6 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 22 Nov 2023 15:01:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20echarts=E6=95=A3=E7=82=B9=E5=9B=BE?= =?UTF-8?q?=E7=B1=BB=E5=88=AB=E8=BD=B4=E6=8B=96=E5=85=A5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/view/ChartEdit.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index 0fa7b8e4d4..384b63c3db 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -3211,12 +3211,10 @@ export default { this.dragCheckType(this.view.xaxis, 'd') } this.dragMoveDuplicate(this.view.xaxis, e) - if (this.view.type === 'scatter' && this.view.render === 'antv') { - if (this.view.xaxis[0] && this.view.xaxis[0].groupType === 'q') { - this.view.xaxis = [this.view.xaxis[0]] - } else { - this.dragCheckType(this.view.xaxis, 'd') - } + if (this.view.type === 'scatter' && this.view.render === 'antv' && this.view.xaxis[0] && this.view.xaxis[0].groupType === 'q') { + this.view.xaxis = [this.view.xaxis[0]] + } else { + this.dragCheckType(this.view.xaxis, 'd') } if ((this.view.type === 'map' || this.view.type === 'word-cloud' || this.view.type === 'label') && this.view.xaxis.length > 1) { this.view.xaxis = [this.view.xaxis[0]]