From 77ce71a14b0a9383be94b208d1fc89ff37567f77 Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Mon, 20 Apr 2026 16:03:22 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E5=88=A0=E9=99=A4=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=E6=97=B6=E9=87=8D=E6=96=B0=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/registration/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/user/registration/index.vue b/src/views/user/registration/index.vue index 6768d2f..e0c075b 100644 --- a/src/views/user/registration/index.vue +++ b/src/views/user/registration/index.vue @@ -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 { // 用户取消