From 1e50403e57cae117633acf77e7e7feb2337d26cd Mon Sep 17 00:00:00 2001 From: khj0414 Date: Mon, 10 Mar 2025 13:00:15 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8A=9C=ED=91=9C=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/voteboard/voteCardCheck.vue | 4 +++- src/components/voteboard/voteCardCheckList.vue | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/voteboard/voteCardCheck.vue b/src/components/voteboard/voteCardCheck.vue index ff10468..d6d317e 100644 --- a/src/components/voteboard/voteCardCheck.vue +++ b/src/components/voteboard/voteCardCheck.vue @@ -88,7 +88,9 @@ const updateCheckedNames = (newValues) => { checkedNames.value = newValues; }; const selectVote = () =>{ - emit('checkedNames',checkedNames.value); + if(checkedNames.value != ''){ + emit('checkedNames',checkedNames.value); + } } diff --git a/src/components/voteboard/voteCardCheckList.vue b/src/components/voteboard/voteCardCheckList.vue index 098f68f..9f6aa6f 100644 --- a/src/components/voteboard/voteCardCheckList.vue +++ b/src/components/voteboard/voteCardCheckList.vue @@ -40,7 +40,6 @@ const emit = defineEmits(["update:selectedValues"]); const handleChange = (event) => { const value = event.target.value; let updatedValues = []; - // 체크박스일 때 여러 개 선택 가능 if (props.multiIs === "1") { updatedValues = event.target.checked