perf: 优化用户选择器

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

View File

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