🐛 fix: 修复bug

This commit is contained in:
wangsongsole 2024-01-19 11:10:35 +08:00
parent 5e5fc985dc
commit 016d39ed5e
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ export function additionalRules(params, computeMin, computeMax) {
return false
}
if (!/^\S*$/.test(model.wishing)) {
Notify.error("祝福语中存在空格,请重新输入")
return false
}
if (model.num < model.receive_num) {
Notify.error("用户可领个数不允许大于红包个数")
return false