fix: 🐛 人员池使用浅拷贝数组实例,避免取消后人员从人员池选择不到 close #213
This commit is contained in:
@@ -497,7 +497,8 @@ export function useViewModel() {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
personPool.value = currentPrize.value.isAll ? notThisPrizePersonList.value : notPersonList.value
|
// personPool.value = currentPrize.value.isAll ? notThisPrizePersonList.value : notPersonList.value
|
||||||
|
personPool.value = currentPrize.value.isAll ? [...notThisPrizePersonList.value] : [...notPersonList.value]
|
||||||
// 验证抽奖人数是否还够
|
// 验证抽奖人数是否还够
|
||||||
if (personPool.value.length < currentPrize.value.count - currentPrize.value.isUsedCount) {
|
if (personPool.value.length < currentPrize.value.count - currentPrize.value.isUsedCount) {
|
||||||
toast.open({
|
toast.open({
|
||||||
|
|||||||
Reference in New Issue
Block a user