투표 컨펌펌

This commit is contained in:
khj0414 2025-04-08 15:49:59 +09:00
parent 8c7b82d0ae
commit 3c54cea558

View File

@ -152,14 +152,16 @@ const voteEnded = async (id) =>{
} }
// //
const voteDelete =(id) =>{ const voteDelete =(id) =>{
$api.patch('vote/updateDeleteData',{ if(confirm('투표를 삭제 하시겠습니까?')){
deleteVoteId :id $api.patch('vote/updateDeleteData',{
}).then((res)=>{ deleteVoteId :id
if(res.data.status === 'OK'){ }).then((res)=>{
toastStore.onToast('투표가 삭제되었습니다.', 's'); if(res.data.status === 'OK'){
getvoteList(); toastStore.onToast('투표가 삭제되었습니다.', 's');
} getvoteList();
}) }
})
}
} }
// 1 // 1
const randomList = (data,id) =>{ const randomList = (data,id) =>{