From 4ab6a15c939b1ddf67e0c002c556038dfd433e14 Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 22 Mar 2021 18:27:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE):=20=E6=8B=96?= =?UTF-8?q?=E6=8B=BDbug=20fix=EF=BC=9B=E6=A0=87=E9=A2=98=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E3=80=81=E5=9B=BE=E5=BD=A2=E5=B1=9E=E6=80=A7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/shape_attr/SizeSelector.vue | 4 ++-- frontend/src/views/chart/view/ChartEdit.vue | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/chart/components/shape_attr/SizeSelector.vue b/frontend/src/views/chart/components/shape_attr/SizeSelector.vue index 6db1e32b7a..09686d3491 100644 --- a/frontend/src/views/chart/components/shape_attr/SizeSelector.vue +++ b/frontend/src/views/chart/components/shape_attr/SizeSelector.vue @@ -25,8 +25,8 @@ - {{ $t('chart.line_type_solid') }} - {{ $t('chart.line_type_dashed') }} + {{ $t('chart.line_type_solid') }} + {{ $t('chart.line_type_dashed') }} diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 897dba7204..2ee1994e07 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -59,7 +59,7 @@
{{ $t('chart.title') }} - + {{ $t('chart.confirm') }} @@ -69,7 +69,6 @@ :placeholder="$t('chart.title')" prefix-icon="el-icon-search" clearable - @blur="save" /> @@ -371,10 +370,10 @@ export default { const yItems = this.quota.filter(function(m) { return m.id === that.moveId }) - if (xItems && xItems.length > 0) { + if (xItems && xItems.length > 1) { this.dimension.splice(e.newDraggableIndex, 1) } - if (yItems && yItems.length > 0) { + if (yItems && yItems.length > 1) { this.quota.splice(e.newDraggableIndex, 1) } },