From 8888675f55bf18d15eb8b683930af62e9a7b5fc7 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 5 Feb 2026 12:21:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E3=80=81=E6=B0=B4=E6=B3=A2=E5=9B=BE?= =?UTF-8?q?=E7=9A=84=E6=9D=A1=E4=BB=B6=E6=A0=B7=E5=BC=8F=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E9=98=88=E5=80=BC=E5=8C=BA=E9=97=B4=E5=8F=AA=E8=83=BD=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=95=B4=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98=20#17927?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editor/editor-senior/components/Threshold.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue index 568cd714a1..d5fc87b015 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue @@ -75,7 +75,7 @@ const changeThreshold = () => { const changeSplitThreshold = (threshold: string) => { // check input if (threshold) { - const regex = /^(\d+)(,\d+)*$/ + const regex = /^(\d+(?:\.\d+)?)(,\d+(?:\.\d+)?)*$/ if (!regex.test(threshold)) { ElMessage.error(t('chart.gauge_threshold_format_error')) return