From 4022bc1bc7378429741d4d15ec8e06983c66e132 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 30 Nov 2022 14:27:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BB=AA=E8=A1=A8=E7=9B=98=E9=98=88=E5=80=BC=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=B0=8F=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/senior/Threshold.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/chart/components/senior/Threshold.vue b/frontend/src/views/chart/components/senior/Threshold.vue index a13417ed3d..a9f7b7958b 100644 --- a/frontend/src/views/chart/components/senior/Threshold.vue +++ b/frontend/src/views/chart/components/senior/Threshold.vue @@ -369,7 +369,7 @@ export default { const arr = this.thresholdForm.gaugeThreshold.split(',') for (let i = 0; i < arr.length; i++) { const ele = arr[i] - if (parseFloat(ele).toString() === 'NaN' || parseFloat(ele) < 1 || parseFloat(ele) > 99) { + if (parseFloat(ele).toString() === 'NaN' || parseFloat(ele) <= 0 || parseFloat(ele) >= 100) { this.$message({ message: this.$t('chart.gauge_threshold_format_error'), type: 'error',