mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-14 03:03:49 +00:00
perf: 优化用户选择器
This commit is contained in:
parent
a0f6a17005
commit
9800f9e3da
@ -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)
|
||||||
// 滚动到选中的位置
|
// 滚动到选中的位置
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user