From f60fa38f3bcfc57dd08540d043e9ccec787a7a88 Mon Sep 17 00:00:00 2001 From: ulleo Date: Fri, 6 Dec 2024 10:50:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=8C=BA=E9=97=B4?= =?UTF-8?q?=E6=9D=A1=E5=BD=A2=E5=9B=BE=E7=9A=84=E5=BC=80=E5=A7=8B=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=BB=98=E8=AE=A4=E6=8C=89=E5=8D=87=E5=BA=8F=E6=8E=92?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/chart/components/editor/index.vue | 3 +++ 1 file changed, 3 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 fdc9d9344a..f4c8efa559 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -673,6 +673,9 @@ const addAxis = (e, axis: AxisType) => { if (list && list.length > 0) { let valid = true for (let i = 0; i < list.length; i++) { + if (list[i].groupType === 'd' && list[i].deType === 1) { + list[i].sort = 'asc' + } if (!(list[i].groupType === 'q' || (list[i].groupType === 'd' && list[i].deType === 1))) { list.splice(i, 1) valid = false