From d2f7d8d507f48b906025bff92406cdee7560aeef Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Wed, 15 Apr 2026 13:23:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=AF=8F=E4=B8=AA=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=99=90=E6=8A=A5=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/apply/apply.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/apply/apply.js b/pages/apply/apply.js index 2acce61..0caeaf2 100644 --- a/pages/apply/apply.js +++ b/pages/apply/apply.js @@ -467,12 +467,13 @@ Page({ } } + // 同一项目只能选一个组别:点选时取消该项目下其他组别;再次点击已选项则取消 const nextProjectGroups = this.data.projectGroups.map((p) => { if (p.projectId !== projectId) return p; return { ...p, groups: p.groups.map((g) => { - if (g.groupId !== groupId) return g; + if (g.groupId !== groupId) return { ...g, selected: false }; return { ...g, selected: !g.selected }; }) };