diff --git a/mindinsight/ui/src/views/train-manage/scalar.vue b/mindinsight/ui/src/views/train-manage/scalar.vue index edd99566..f4f287b6 100644 --- a/mindinsight/ui/src/views/train-manage/scalar.vue +++ b/mindinsight/ui/src/views/train-manage/scalar.vue @@ -1869,7 +1869,7 @@ export default { } else if (valueFirst.indexOf(' ') > -1) { this.thresholdErrorMsg = this.$t('scalar.noSpace'); isValidate = false; - } else if (isNaN(valueFirst)) { + } else if (isNaN(valueFirst) || valueFirst.indexOf('Infinity') > -1) { this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber'); isValidate = false; } @@ -1889,6 +1889,9 @@ export default { } else if (isNaN(valueFirst) || isNaN(valueSec)) { this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber'); isValidate = false; + } else if (valueFirst.indexOf('Infinity') > -1 || valueSec.indexOf('Infinity') > -1) { + this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber'); + isValidate = false; } else { if (this.thresholdRelational === this.$t('scalar.or')) { if (