Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6636bd5ba6
|
|
@ -345,12 +345,12 @@
|
|||
|
||||
const regex = /^\d+$/
|
||||
|
||||
if (!regex.test(parseFloat(inputValue))) {
|
||||
if (!regex.test(inputValue)) {
|
||||
layer.msg('请输入大于等于0的正整数')
|
||||
isValidate = true
|
||||
return false
|
||||
}
|
||||
if (parseFloat(inputValue) > maxValue) {
|
||||
if (inputValue > maxValue) {
|
||||
layer.msg(`不可当前最大分值是${maxValue}`)
|
||||
isValidate = true
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in New Issue