This commit is contained in:
BianLzhaoMin 2025-02-27 11:24:36 +08:00
parent f003a0c4be
commit 79881fb3fc
1 changed files with 2 additions and 2 deletions

View File

@ -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