update:删除团队时重新请求
This commit is contained in:
parent
9d02881a01
commit
77ce71a14b
@ -1449,6 +1449,13 @@ const removeTeam = async (groupId, teamIndex) => {
|
||||
|
||||
const teamIdx = teams.findIndex(t => t.teamIndex === teamIndex);
|
||||
if (teamIdx > -1) {
|
||||
// 清理被删除团队的队员验证缓存
|
||||
const removedTeam = teams[teamIdx];
|
||||
removedTeam.members.forEach(m => {
|
||||
const key = `${groupId}_${m.userId ?? m.id}`;
|
||||
delete memberValidationMap.value[key];
|
||||
});
|
||||
|
||||
teams.splice(teamIdx, 1);
|
||||
|
||||
// 重新编号团队索引
|
||||
@ -1457,6 +1464,9 @@ const removeTeam = async (groupId, teamIndex) => {
|
||||
});
|
||||
|
||||
ElMessage.success('团队删除成功');
|
||||
|
||||
// 重新调用验证接口,刷新限报提示
|
||||
checkRegistrationLimit();
|
||||
}
|
||||
} catch {
|
||||
// 用户取消
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user