perf: 优化用户选择器

This commit is contained in:
Pang 2023-12-24 10:47:07 +08:00
parent a0f6a17005
commit 9800f9e3da

View File

@ -638,8 +638,11 @@ export default {
return return
} }
if (this.multipleMax && this.selects.length >= this.multipleMax) { if (this.multipleMax && this.selects.length >= this.multipleMax) {
$A.messageWarning("已超过最大选择数量") if (this.multipleMax > 1) {
return $A.messageWarning("已超过最大选择数量")
return
}
this.selects = []
} }
this.selects.push(userid) this.selects.push(userid)
// //