Merge remote-tracking branch 'origin/master'

This commit is contained in:
zfh 2025-02-27 11:25:16 +08:00
commit 6636bd5ba6
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