diff --git a/src/views/match/manage/work.vue b/src/views/match/manage/work.vue index a940fe0..bbc6631 100644 --- a/src/views/match/manage/work.vue +++ b/src/views/match/manage/work.vue @@ -1220,8 +1220,8 @@ const viewCertificate = async (id) => { try { const { succeeded, data, errors } = await eventscoreGetCertificateDetailGet(id); if (succeeded) { - if (data?.CertificateUrl) { - window.open(data.CertificateUrl, '_blank'); + if (data?.certificateUrl) { + window.open(data.certificateUrl, '_blank'); } else if (data?.url) { window.open(data.url, '_blank'); } else if (data?.Url) { diff --git a/src/views/user/registration/index.vue b/src/views/user/registration/index.vue index d17efaa..6768d2f 100644 --- a/src/views/user/registration/index.vue +++ b/src/views/user/registration/index.vue @@ -829,6 +829,17 @@ const toggleGroupSelection = (id) => { if (idx >= 0) { // 取消选中 selectedGroupIds.value.splice(idx, 1); + // 若在第二步删除了组别,清理该组别的验证缓存并重新触发验证 + if (activeStep.value === 1) { + // 清理被删除组别的队员验证缓存 + Object.keys(memberValidationMap.value).forEach(key => { + if (key.startsWith(`${id}_`)) { + delete memberValidationMap.value[key]; + } + }); + // 重新检查报名限制(刷新页面上的提示信息) + checkRegistrationLimit(); + } } else { // 选中新组别:先找出这个组别属于哪个项目,然后取消该项目的其他组别 const clickedGroup = allGroups.value.find(g => g.id === id);