提交 6d71fc85 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!324 Judgment of adding infinite string

Merge pull request !324 from 王卫宁/wwn
...@@ -1869,7 +1869,7 @@ export default { ...@@ -1869,7 +1869,7 @@ export default {
} else if (valueFirst.indexOf(' ') > -1) { } else if (valueFirst.indexOf(' ') > -1) {
this.thresholdErrorMsg = this.$t('scalar.noSpace'); this.thresholdErrorMsg = this.$t('scalar.noSpace');
isValidate = false; isValidate = false;
} else if (isNaN(valueFirst)) { } else if (isNaN(valueFirst) || valueFirst.indexOf('Infinity') > -1) {
this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber'); this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber');
isValidate = false; isValidate = false;
} }
...@@ -1889,6 +1889,9 @@ export default { ...@@ -1889,6 +1889,9 @@ export default {
} else if (isNaN(valueFirst) || isNaN(valueSec)) { } else if (isNaN(valueFirst) || isNaN(valueSec)) {
this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber'); this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber');
isValidate = false; isValidate = false;
} else if (valueFirst.indexOf('Infinity') > -1 || valueSec.indexOf('Infinity') > -1) {
this.thresholdErrorMsg = this.$t('scalar.placeHolderNumber');
isValidate = false;
} else { } else {
if (this.thresholdRelational === this.$t('scalar.or')) { if (this.thresholdRelational === this.$t('scalar.or')) {
if ( if (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册