无故事王国
2023-11-08 5f9cd3ae516f510a9475fd11f440fedf027aa4df
WanPai/Root/Other/View/StudentChooseView.swift
@@ -171,7 +171,7 @@
            let item = actViewModel.dataSource.value[indexPath.row]
           if self.selectStudents.contains(where: {($0 as! ActivityDetailPartModel).id == item.id}){
               if self.selectStudents.count == 1{
                   alert(msg: "至少选择一位参赛运动营成员");return
                   alert(msg: "至少选择一位运动营成员");return
               }
            if let index = self.selectStudents.firstIndex(where: {($0 as! ActivityDetailPartModel).id == item.id}){
               self.selectStudents.remove(at: index)