From bfb1619a1ab0c0d45aff53ac4df4e720b0f9bb52 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 25 Jan 2024 10:09:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E4=BB=AA=E8=A1=A8=E6=9D=BF?= =?UTF-8?q?=E3=80=91=E6=8C=87=E6=A0=87=E5=8D=A1-=E9=AB=98=E7=BA=A7-?= =?UTF-8?q?=E9=98=88=E5=80=BC-=E4=BB=8B=E4=BA=8E=E6=9D=A1=E4=BB=B6-?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=80=BC=E4=B8=BA0=E8=A2=AB=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=88=90=E4=BA=86=E5=80=BC=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-senior/components/Threshold.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 87acff1bb2..e62353ece1 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 @@ -91,13 +91,12 @@ const changeLabelThreshold = () => { // check line config for (let i = 0; i < state.thresholdArr.length; i++) { const ele = state.thresholdArr[i] - console.log(ele) - if (!ele.term || ele.term === '') { + if (ele.term === undefined || ele.term === '') { ElMessage.error(t('chart.exp_can_not_empty')) return } if (ele.term === 'between') { - if (!ele.min || !ele.max) { + if (ele.min === undefined || ele.max === undefined) { ElMessage.error(t('chart.value_can_not_empty')) return } @@ -110,7 +109,6 @@ const changeLabelThreshold = () => { return } } else { - console.log(ele.value === undefined) if (ele.value === undefined) { ElMessage.error(t('chart.value_can_not_empty')) return