fix: 🐛 人员池使用浅拷贝数组实例,避免取消后人员从人员池选择不到 close #213

fix: 🐛 人员池使用浅拷贝数组实例,避免取消后人员从人员池选择不到 close #213
This commit is contained in:
LOG1997
2026-01-20 09:40:22 +08:00
committed by GitHub

View File

@@ -497,7 +497,8 @@ export function useViewModel() {
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) {
toast.open({