From 3c54cea558aba7095cd7ff63b7efb1b778830328 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Tue, 8 Apr 2025 15:49:59 +0900 Subject: [PATCH] =?UTF-8?q?=ED=88=AC=ED=91=9C=20=EC=BB=A8=ED=8E=8C?= =?UTF-8?q?=ED=8E=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/voteboard/voteBoardList.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/voteboard/voteBoardList.vue b/src/views/voteboard/voteBoardList.vue index 4395ca7..f73b13d 100644 --- a/src/views/voteboard/voteBoardList.vue +++ b/src/views/voteboard/voteBoardList.vue @@ -152,14 +152,16 @@ const voteEnded = async (id) =>{ } //투표 삭제 const voteDelete =(id) =>{ - $api.patch('vote/updateDeleteData',{ - deleteVoteId :id - }).then((res)=>{ - if(res.data.status === 'OK'){ - toastStore.onToast('투표가 삭제되었습니다.', 's'); - getvoteList(); - } - }) + if(confirm('투표를 삭제 하시겠습니까?')){ + $api.patch('vote/updateDeleteData',{ + deleteVoteId :id + }).then((res)=>{ + if(res.data.status === 'OK'){ + toastStore.onToast('투표가 삭제되었습니다.', 's'); + getvoteList(); + } + }) + } } //랜덤 1위 뽑기 const randomList = (data,id) =>{