From 73514ebc1f4c395507976a5219602b4451d80ac4 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 17 Feb 2023 10:36:22 +0800 Subject: [PATCH] =?UTF-8?q?Bug:=E5=8F=82=E6=BC=94=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/trainingDesign/designPane.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/display/trainingDesign/designPane.vue b/src/views/newMap/display/trainingDesign/designPane.vue index daf3086fd..491b05706 100644 --- a/src/views/newMap/display/trainingDesign/designPane.vue +++ b/src/views/newMap/display/trainingDesign/designPane.vue @@ -468,6 +468,7 @@ export default { this.addPlayerIdList(val); }, addPlayerIdList(playId) { + console.log(this.playerIdList.includes(playId), this.playerIdList, playId); if (!this.playerIdList.includes(playId)) { this.playerIdList.push(playId); } @@ -476,7 +477,7 @@ export default { checkPlayerIdHas() { const list = []; this.tableData.forEach(elem => { - if (this.playerIdList.includes(elem.memberId)) { + if (this.playerIdList.includes(elem.memberId) && !list.includes(elem.memberId)) { list.push(elem.memberId); } });